This commit is contained in:
Ivar Fatland
2025-02-18 08:07:45 +01:00
parent edc6d87531
commit 03761e19d0
2 changed files with 25 additions and 3 deletions
+3
View File
@@ -12,6 +12,9 @@ set clipboard+=unnamed
let mapleader = ","
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
set quickscope
map <leader>ff <Action>(SearchEverywhere)
map <leader>fd <Action>(GotoDeclaration)
map <leader>ft <Action>(GotoTypeDeclaration)
+22 -3
View File
@@ -91,7 +91,12 @@ end
vim.opt.rtp:prepend(lazypath)
require'lazy'.setup{ --{{{1
{ 'justinmk/vim-sneak', --{{{2
{ 'unblevable/quick-scope', --{{{2
init = function()
vim.cmd [[
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
]]
end,
},
{ 'michaeljsmith/vim-indent-object', --{{{2
},
@@ -158,6 +163,7 @@ require'lazy'.setup{ --{{{1
require'lspconfig'.pyright.setup{}
require'lspconfig'.ts_ls.setup{}
require'lspconfig'.jdtls.setup{}
require'lspconfig'.csharp_ls.setup{}
require'lspconfig'.zls.setup{ enable_autofix = false }
vim.g.zig_fmt_autosave = false
@@ -177,6 +183,19 @@ require'lazy'.setup{ --{{{1
]]
end
},
{ 'nvim-treesitter/nvim-treesitter', --{{{2
config = function()
require'nvim-treesitter.configs'.setup{
ensure_installed = "all",
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
end,
},
{ 'mfussenegger/nvim-dap', --{{{2
dependencies = {
'nvim-treesitter/nvim-treesitter',
@@ -213,8 +232,8 @@ require'lazy'.setup{ --{{{1
imap <expr> <c-k> '<Plug>(snippy-previous)'
smap <expr> <c-l> '<Plug>(snippy-next)'
smap <expr> <c-k> '<Plug>(snippy-previous)'
nmap <Tab> <Plug>(snippy-cut-text)
xmap <Tab> <Plug>(snippy-cut-text)
nmap g; <Plug>(snippy-cut-text)
xmap g; <Plug>(snippy-cut-text)
]]
vim.api.nvim_create_user_command(