mirror of
https://github.com/Phantop/dotfiles
synced 2025-04-01 07:16:59 +00:00
nvim: why is this config so scattereddd
This commit is contained in:
parent
5c8da9db0a
commit
d99180265d
2
archpkgs
2
archpkgs
|
@ -92,7 +92,6 @@ nnn
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
nss-mdns
|
nss-mdns
|
||||||
opendoas
|
opendoas
|
||||||
openssl-1.1
|
|
||||||
opus-tools
|
opus-tools
|
||||||
oxipng
|
oxipng
|
||||||
p7zip
|
p7zip
|
||||||
|
@ -151,7 +150,6 @@ w3m
|
||||||
waifu2x-ncnn-vulkan
|
waifu2x-ncnn-vulkan
|
||||||
webp-pixbuf-loader
|
webp-pixbuf-loader
|
||||||
wget
|
wget
|
||||||
wimlib
|
|
||||||
xdelta3
|
xdelta3
|
||||||
xdg-utils
|
xdg-utils
|
||||||
xf86-input-evdev
|
xf86-input-evdev
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
function undefalte
|
function undeflate
|
||||||
fd -t f -x advzip -z0
|
fd -t f -x advzip -z0
|
||||||
fd -t f -x advdef -z0
|
fd -t f -x advdef -z0
|
||||||
fd -e pdf -x qpdf --stream-data=uncompress --replace-input --compress-streams=n --recompress-flate --compression-level=0 --optimize-images {}
|
fd -e pdf -x qpdf --stream-data=uncompress --replace-input --compress-streams=n --recompress-flate --compression-level=0 --optimize-images {}
|
||||||
|
|
|
@ -1,28 +1,33 @@
|
||||||
require "paq" {
|
require "paq" {
|
||||||
'ctrlpvim/ctrlp.vim';
|
'ctrlpvim/ctrlp.vim',
|
||||||
'dense-analysis/ale';
|
'dense-analysis/ale',
|
||||||
'dracula/vim';
|
'echasnovski/mini.nvim',
|
||||||
'godlygeek/tabular';
|
'dracula/vim',
|
||||||
'lervag/vimtex';
|
'lervag/vimtex',
|
||||||
'lewis6991/gitsigns.nvim';
|
'lewis6991/gitsigns.nvim',
|
||||||
'lukas-reineke/indent-blankline.nvim';
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
'luukvbaal/nnn.nvim';
|
'luukvbaal/nnn.nvim',
|
||||||
'RobertAudi/fish.vim';
|
'neovim/nvim-lspconfig',
|
||||||
'tpope/vim-commentary';
|
'nvim-lua/plenary.nvim',
|
||||||
'tpope/vim-sensible';
|
'nvimtools/none-ls.nvim',
|
||||||
'tpope/vim-sleuth';
|
'tpope/vim-sleuth',
|
||||||
'vim-airline/vim-airline';
|
'vim-airline/vim-airline',
|
||||||
|
|
||||||
'https://git.sr.ht/~ackyshake/VimCompletesMe.vim';
|
--'tpope/vim-sensible',
|
||||||
{ 'nvim-treesitter/nvim-treesitter', run = function() vim.cmd 'TSUpdate' end };
|
--'williamboman/mason-lspconfig.nvim',
|
||||||
|
--{ 'williamboman/mason.nvim', build = ':MasonUpdate' },
|
||||||
|
|
||||||
|
'https://sr.ht/~ackyshake/VimCompletesMe.vim',
|
||||||
|
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
|
||||||
}
|
}
|
||||||
|
|
||||||
require("gitsigns").setup()
|
require("gitsigns").setup()
|
||||||
require("ibl").setup()
|
require("ibl").setup()
|
||||||
|
require("lspconfig").clangd.setup{}
|
||||||
|
--require("mason").setup()
|
||||||
|
--require("mason-lspconfig").setup()
|
||||||
require("nnn").setup()
|
require("nnn").setup()
|
||||||
require("nvim-treesitter.configs").setup {
|
require("nvim-treesitter.configs").setup{ highlight = { enable = true } }
|
||||||
highlight = { enable = true, additional_vim_regex_highlighting = false }
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.opt.background = "dark"
|
vim.opt.background = "dark"
|
||||||
vim.opt.clipboard = "unnamedplus"
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
@ -44,11 +49,16 @@ vim.opt.wrap = false
|
||||||
|
|
||||||
vim.keymap.set('', '<F7>', 'mzgg=G`z')
|
vim.keymap.set('', '<F7>', 'mzgg=G`z')
|
||||||
vim.keymap.set('', 'r', '"_d')
|
vim.keymap.set('', 'r', '"_d')
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.code_action() end)
|
||||||
|
vim.keymap.set('n', '<leader>h', function() vim.lsp.buf.hover() end)
|
||||||
|
vim.keymap.set('n', '<leader>r', function() vim.lsp.buf.rename() end)
|
||||||
|
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
|
PaqSync
|
||||||
colorscheme dracula
|
colorscheme dracula
|
||||||
command Q q!
|
command Q q!
|
||||||
PaqSync
|
let b:ale_linters = {'c': ['']}
|
||||||
|
|
||||||
autocmd BufReadPost,FileReadPost *.bz3 call gzip#read("bzip3 -d")
|
autocmd BufReadPost,FileReadPost *.bz3 call gzip#read("bzip3 -d")
|
||||||
]]
|
]]
|
||||||
|
|
Loading…
Reference in a new issue