diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c160200 Binary files /dev/null and b/.DS_Store differ diff --git a/init.lua b/init.lua index 2decdc3..91b8532 100644 --- a/init.lua +++ b/init.lua @@ -190,6 +190,12 @@ vim.keymap.set('x', 'p', [["_dP]]) -- This is going to get me cancelled vim.keymap.set('i', '', '') +vim.api.nvim_create_user_command('StopLSP', function() + vim.lsp.stop_client(vim.lsp.get_clients(), true) + + print("Stopped all LSP clients") +end, {}) + -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- for people to discover. Otherwise, you normally need to press , which -- is not what someone will guess without a bit more experience. @@ -309,13 +315,13 @@ require('lazy').setup({ require('which-key').setup() -- Document existing key chains - require('which-key').register { - ['c'] = { name = '[C]ode', _ = 'which_key_ignore' }, - ['d'] = { name = '[D]ocument', _ = 'which_key_ignore' }, - ['r'] = { name = '[R]ename', _ = 'which_key_ignore' }, - ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, - ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, - } + require('which-key').add({ + { 'c', group = '[C]ode', _ = 'which_key_ignore' }, + { 'd', group = '[D]ocument', _ = 'which_key_ignore' }, + { 'r', group = '[R]ename', _ = 'which_key_ignore' }, + { 's', group = '[S]earch', _ = 'which_key_ignore' }, + { 'w', group = '[W]orkspace', _ = 'which_key_ignore' }, + }) end, }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 5ba721d..46b3497 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -108,7 +108,13 @@ return { 'akinsho/flutter-tools.nvim', requires = { 'nvim-lua/plenary.nvim', - 'stevearc/dressing.nvim', -- optional for vim.ui.select + 'stevearc/dressing.nvim', -- optional for vim.ui.select }, + }, + { + "danymat/neogen", + config = true, + -- Uncomment next line if you want to follow only stable versions + version = "*" } }