diff --git a/.ideavimrc b/.ideavimrc index 8ef14b0..f2c7efa 100644 --- a/.ideavimrc +++ b/.ideavimrc @@ -12,6 +12,9 @@ set clipboard+=unnamed let mapleader = "," +let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] +set quickscope + map ff (SearchEverywhere) map fd (GotoDeclaration) map ft (GotoTypeDeclaration) diff --git a/init.lua b/init.lua index bc5d7f8..998f09d 100644 --- a/init.lua +++ b/init.lua @@ -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 '(snippy-previous)' smap '(snippy-next)' smap '(snippy-previous)' - nmap (snippy-cut-text) - xmap (snippy-cut-text) + nmap g; (snippy-cut-text) + xmap g; (snippy-cut-text) ]] vim.api.nvim_create_user_command(