change some buffers

This commit is contained in:
gameloader
2022-10-14 08:54:12 +08:00
parent c5128bda3c
commit 00b293c1d8
11 changed files with 116 additions and 63 deletions

21
lua/lsp/config/gopls.lua Normal file
View File

@ -0,0 +1,21 @@
return {
on_setup = function(server)
server.setup({
flags = {
debounce_text_changes = 150,
},
on_attach = function(client, bufnr)
-- 禁用格式化功能,交给专门插件插件处理
client.server_capabilities.document_formatting = false
client.server_capabilities.document_range_formatting = false
-- 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
-- 绑定快捷键
-- require("keybindings").mapLSP(buf_set_keymap)
end,
})
end,
}