feat: move lsp mappings to nvim/lua/maps.lua
This commit is contained in:
parent
9c2569e575
commit
6e23ee1e40
@ -14,7 +14,6 @@ require("polyjuice") -- colorscheme
|
||||
|
||||
-- LSP
|
||||
require("lsp") -- ./lua/lsp/init.lua
|
||||
require("lsp.maps") -- ./lua/lsp/maps.lua
|
||||
require("lsp.c") -- ./lua/lsp/c.lua
|
||||
require("lsp.lua") -- ./lua/lsp/lua.lua
|
||||
require("lsp.python") -- ./lua/lsp/python.lua
|
||||
|
@ -1,11 +0,0 @@
|
||||
-- Author : swytch
|
||||
-- Created : Tuesday May 18, 2021 12:08:51 CET
|
||||
-- License : GPLv3
|
||||
-- Description : neovim lsp mappings file
|
||||
|
||||
utils = require("utils")
|
||||
|
||||
utils.map("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>")
|
||||
utils.map("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>")
|
||||
utils.map("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>")
|
||||
utils.map("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>")
|
@ -11,3 +11,11 @@ utils.map("v", "<leader>p", "\"+P")
|
||||
utils.map("n", "<leader><enter>", "<cmd>w! | !compiler %<CR>")
|
||||
utils.map("n", "<leader>s", "<cmd>PackerSync<CR>")
|
||||
utils.map("n", "<leader>c", "<cmd>ColorizerToggle<CR>")
|
||||
|
||||
-- LSP
|
||||
utils.map("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>")
|
||||
utils.map("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>")
|
||||
utils.map("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>")
|
||||
utils.map("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>")
|
||||
utils.map("n", "<leader>ln", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>")
|
||||
utils.map("n", "<leader>lp", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>")
|
||||
|
Reference in New Issue
Block a user