This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/nvim/lua/lsp/maps.lua
David JULIEN 32680ec340 feat: configure LSP in neovim
add LSP config in $XDG_CONFIG_HOME/nvim/lua/lsp
add language servers:
        - clangd (C/C++)
        - jedi (Python)
2021-05-19 11:56:12 +02:00

12 lines
428 B
Lua

-- 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>")