You've already forked dotfiles
Merge branch 'main' into development
This commit is contained in:
@@ -25,8 +25,7 @@ vim.diagnostic.config({
|
||||
}
|
||||
})
|
||||
|
||||
-- LSP
|
||||
-- TODO: test out removing the lspconfig plugin and using the built-in enablement
|
||||
-- Install and enable the language server settings from nvim-lspconfig
|
||||
vim.pack.add({
|
||||
'https://github.com/neovim/nvim-lspconfig',
|
||||
})
|
||||
@@ -35,23 +34,6 @@ vim.pack.add({
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('my.lsp', {}),
|
||||
callback = function(args)
|
||||
-- Native completion
|
||||
-- local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
|
||||
-- local chars = {}; for i = 32, 126 do table.insert(chars, string.char(i)) end
|
||||
-- client.server_capabilities.completionProvider.triggerCharacters = chars
|
||||
--
|
||||
-- vim.lsp.completion.enable(true, args.data.client_id, args.buf, {
|
||||
-- autotrigger = true,
|
||||
-- convert = function(item)
|
||||
-- local abbr = item.label
|
||||
-- abbr = abbr:gsub("%b()", ""):gsub("%b{}", "")
|
||||
-- abbr = abbr:match("[%w_.]+.*") or abbr
|
||||
-- abbr = #abbr > 20 and abbr:sub(1, 19) .. "..." or abbr
|
||||
--
|
||||
-- return { abbr = abbr }
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
local bufnr = args.buf
|
||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user