|
|
|
@ -121,7 +121,10 @@ require('lazy').setup({
|
|
|
|
|
config = {
|
|
|
|
|
capabilities = nil,
|
|
|
|
|
},
|
|
|
|
|
exe = vim.fs.joinpath(vim.fn.stdpath 'data' --[[@as string]], 'roslyn', 'Microsoft.CodeAnalysis.LanguageServer.dll'),
|
|
|
|
|
exe = {
|
|
|
|
|
'dotnet',
|
|
|
|
|
vim.fs.joinpath(vim.fn.stdpath 'data', 'roslyn', 'Microsoft.CodeAnalysis.LanguageServer.dll'),
|
|
|
|
|
},
|
|
|
|
|
-- NOTE: Set `filewatching` to false if you experience performance problems.
|
|
|
|
|
-- Defaults to true, since turning it off is a hack.
|
|
|
|
|
-- If you notice that the server is _super_ slow, it is probably because of file watching
|
|
|
|
@ -177,21 +180,27 @@ require('lazy').setup({
|
|
|
|
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
|
|
|
|
config = function() -- This is the function that runs, AFTER loading
|
|
|
|
|
require('which-key').setup()
|
|
|
|
|
|
|
|
|
|
-- Document existing key chains
|
|
|
|
|
require('which-key').register {
|
|
|
|
|
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
|
|
|
|
|
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
|
|
|
|
|
require('which-key').add {
|
|
|
|
|
{ '<leader>c', group = '[C]ode' },
|
|
|
|
|
{ '<leader>c_', hidden = true },
|
|
|
|
|
{ '<leader>d', group = '[D]ocument' },
|
|
|
|
|
{ '<leader>d_', hidden = true },
|
|
|
|
|
{ '<leader>h', group = 'Git [H]unk' },
|
|
|
|
|
{ '<leader>h_', hidden = true },
|
|
|
|
|
{ '<leader>r', group = '[R]ename' },
|
|
|
|
|
{ '<leader>r_', hidden = true },
|
|
|
|
|
{ '<leader>s', group = '[S]earch' },
|
|
|
|
|
{ '<leader>s_', hidden = true },
|
|
|
|
|
{ '<leader>t', group = '[T]oggle' },
|
|
|
|
|
{ '<leader>t_', hidden = true },
|
|
|
|
|
{ '<leader>w', group = '[W]orkspace' },
|
|
|
|
|
{ '<leader>w_', hidden = true },
|
|
|
|
|
}
|
|
|
|
|
-- visual mode
|
|
|
|
|
require('which-key').register({
|
|
|
|
|
['<leader>h'] = { 'Git [H]unk' },
|
|
|
|
|
}, { mode = 'v' })
|
|
|
|
|
require('which-key').add {
|
|
|
|
|
{ '<leader>h', desc = 'Git [H]unk', mode = 'v' },
|
|
|
|
|
}
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|