diff --git a/after/ftplugin/hare.lua b/after/ftplugin/hare.lua new file mode 100644 index 0000000..539428b --- /dev/null +++ b/after/ftplugin/hare.lua @@ -0,0 +1,12 @@ +local set = vim.opt_local + +vim.bo.commentstring = "// %s" +vim.bo.comments = "s:/*,m: *,ex:*/,://" + +set.shiftwidth = 4 +set.tabstop = 4 +set.softtabstop = 4 +set.expandtab = true + +set.number = true +set.relativenumber = true diff --git a/plugin/lsp.lua b/plugin/lsp.lua index 87b20d6..7d7f177 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -245,6 +245,13 @@ vim.lsp.config['gopls'] = { root_markers = { 'go.mod', 'go.work', '.git' }, capabilities = caps, settings = { + gopls = { + analyses = { + ST1003 = false, + unusedparams = true, + }, + staticcheck = true, + }, }, }