Compare commits

...

2 commits

2 changed files with 5 additions and 1 deletions

View file

@ -29,6 +29,7 @@ map('n', '<Leader>nv', ':Telescope find_files cwd=~/.config/nvim<Enter>
map('n', '<Leader>nc', ':Telescope find_files cwd=~/.config<Enter>', options) map('n', '<Leader>nc', ':Telescope find_files cwd=~/.config<Enter>', options)
map('n', '<Leader>gd', ':Telescope lsp_definitions<Enter>', options) map('n', '<Leader>gd', ':Telescope lsp_definitions<Enter>', options)
map('n', '<Leader>gD', ':Telescope lsp_declaration<Enter>', options)
map('n', '<Leader>gr', ':Telescope lsp_references<Enter>', options) map('n', '<Leader>gr', ':Telescope lsp_references<Enter>', options)
map('n', '<Leader>gs', ':Telescope lsp_workspace_symbols<Enter>', options) map('n', '<Leader>gs', ':Telescope lsp_workspace_symbols<Enter>', options)
map('n', '<Leader>gS', ':Telescope lsp_dynamic_workspace_symbols<Enter>', options) map('n', '<Leader>gS', ':Telescope lsp_dynamic_workspace_symbols<Enter>', options)
@ -69,7 +70,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts) vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts)
--vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts) --vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts)
vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts) --vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts)
vim.keymap.set('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<cr>', opts) vim.keymap.set('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<cr>', opts)
vim.keymap.set('n', 'go', '<cmd>lua vim.lsp.buf.type_definition()<cr>', opts) vim.keymap.set('n', 'go', '<cmd>lua vim.lsp.buf.type_definition()<cr>', opts)
--vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts) --vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)

View file

@ -23,3 +23,6 @@ vim.opt.listchars:append {
vim.opt.list = true vim.opt.list = true
vim.opt.spelllang = {'fr', 'en'} vim.opt.spelllang = {'fr', 'en'}
vim.opt.splitbelow = true
vim.opt.splitright = true