Commit acee2b27 authored by Tim van Deurzen's avatar Tim van Deurzen

Neovim updates.

parent b10c54d8
local lsp_config = require("lspconfig")
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
capabilities.textDocument.completion.completionItem.snippetSupport = true
lsp_config.gopls.setup({
capabilities = capabilities,
settings = {
gopls = {
experimentalPostfixCompletions = true,
analyses = {
fieldalignment = true,
nilness = true,
unusedwrite = true,
unusedparams = true,
shadow = true,
unreachable = true,
bools = true,
},
staticcheck = true,
usePlaceholders = true,
codelenses = {
gc_details = true,
},
},
},
})
vim.cmd('set noexpandtab')
...@@ -105,3 +105,4 @@ local function basic_configuration() ...@@ -105,3 +105,4 @@ local function basic_configuration()
end end
basic_configuration() basic_configuration()
vim.g.lua_ftplugin = 1
...@@ -11,7 +11,7 @@ return require("packer").startup(function() ...@@ -11,7 +11,7 @@ return require("packer").startup(function()
requires = { "tjdevries/colorbuddy.vim" }, requires = { "tjdevries/colorbuddy.vim" },
config = function() config = function()
--require('colorbuddy').colorscheme('gruvbox') --require('colorbuddy').colorscheme('gruvbox')
vim.cmd([[colo gruvbox]]) vim.cmd([[colo doom-one]])
end, end,
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment