mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update nvim
This commit is contained in:
parent
fef35c3ef0
commit
f20307981c
5 changed files with 36 additions and 12 deletions
|
|
@ -44,10 +44,12 @@ C urgent_border_color "#FF6C6B"
|
|||
#== BSPWM Rules
|
||||
R kitty desktop='^1' focus=on follow=on
|
||||
R Google-chrome desktop='^2' focus=on follow=on
|
||||
R Brave desktop='^2' focus=on follow=on
|
||||
R Code desktop='^3' focus=on follow=on
|
||||
R Simplenote desktop='^4' focus=on follow=on
|
||||
R Postman desktop='^4' focus=off follow=off
|
||||
R Simplenote desktop='^4' focus=off follow=off
|
||||
R Zathura desktop='^4' focus=on follow=on state=tiled
|
||||
R discord desktop='^5' focus=on follow=off
|
||||
R TelegramDesktop desktop='^5' focus=off follow=on
|
||||
R Nemo desktop='^5' focus=on follow=on
|
||||
R Zathura desktop='^5' focus=on follow=on state=tiled
|
||||
R discord desktop='^6' focus=on follow=off
|
||||
R TelegramDesktop desktop='^6' focus=off follow=on
|
||||
R KeePassXC desktop='^7' focus=on follow=on
|
||||
R KeePassXC desktop='^6' focus=on follow=on
|
||||
|
|
|
|||
|
|
@ -13,8 +13,9 @@ require'compe'.setup {
|
|||
source = {
|
||||
-- path = true,
|
||||
buffer = true,
|
||||
nvim_lsp = true,
|
||||
};
|
||||
description = true,
|
||||
nvim_lsp = true
|
||||
}
|
||||
}
|
||||
|
||||
-- LuaLine
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
local S = vim.g
|
||||
|
||||
-- Settings
|
||||
S.nvim_tree_side = "left"
|
||||
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "venv", "env"}
|
||||
S.nvim_tree_side = "right"
|
||||
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "__pycache__", "venv", "env"}
|
||||
S.nvim_tree_auto_close = 0
|
||||
S.nvim_tree_quit_on_open = 0
|
||||
S.nvim_tree_width = 24
|
||||
|
|
|
|||
17
config/nvim/lua/tsserver.lua
Normal file
17
config/nvim/lua/tsserver.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
require('lspconfig').typescript.setup({
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function(_, _, params, client_id, _, config)
|
||||
if params.diagnostics ~= nil then
|
||||
local idx = 1
|
||||
while idx <= #params.diagnostics do
|
||||
if params.diagnostics[idx].code == 80001 then
|
||||
table.remove(params.diagnostics, idx)
|
||||
else
|
||||
idx = idx + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
vim.lsp.diagnostic.on_publish_diagnostics(_, _, params, client_id, _, config)
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
ino jk <esc>
|
||||
nno <C-s> :w<cr>
|
||||
nno <C-p> :GFiles<cr>
|
||||
nno <space> :noh<cr>
|
||||
nno <leader>t :Term<cr>
|
||||
nno <leader>e :NvimTreeToggle<cr>
|
||||
nno <leader>; :Files<cr>
|
||||
nno <leader>d :Neogit<cr>
|
||||
nno <leader>g :Neogit<cr>
|
||||
|
||||
" Buffer
|
||||
nno <leader>j :bn<cr>
|
||||
|
|
@ -20,8 +21,6 @@ nno sh :lua vim.lsp.buf.hover()<cr>
|
|||
nno sd :lua vim.lsp.buf.definition()<cr>
|
||||
nno sa :lua vim.lsp.buf.code_action()<cr>
|
||||
nno si :lua vim.lsp.buf.implementation()<cr>
|
||||
nno sf :lua vim.lsp.buf.formatting()
|
||||
nno sR :lua vim.lsp.buf.references()<CR>
|
||||
|
||||
" Split
|
||||
nno <C-h> :winc h<cr>
|
||||
|
|
@ -29,6 +28,11 @@ nno <C-j> :winc j<cr>
|
|||
nno <C-k> :winc k<cr>
|
||||
nno <C-l> :winc l<cr>
|
||||
|
||||
nno <A-h> :vert res +3<cr>
|
||||
nno <A-j> :res -3<cr>
|
||||
nno <A-k> :res +3<cr>
|
||||
nno <A-l> :vert res -3<cr>
|
||||
|
||||
nno spv :vs<cr>
|
||||
nno sph :sp<cr>
|
||||
nno spk :winc K<cr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue