neovim/lua/lsp/init.lua

15 lines
418 B
Lua
Raw Permalink Normal View History

2023-02-26 12:50:20 +00:00
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
common_lsp_on_attach = function(client, bufnr)
2023-05-05 16:17:07 +00:00
local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...)
end
local function buf_set_option(...)
vim.api.nvim_buf_set_option(bufnr, ...)
end
2023-02-26 12:50:20 +00:00
end
common_lsp_flags = {
2023-05-05 16:17:07 +00:00
debounce_text_changes = 500,
2023-02-26 12:50:20 +00:00
}