From 47a45d834ddf3371dd8008ecc05d369efadff52a Mon Sep 17 00:00:00 2001 From: abs3nt Date: Thu, 2 Mar 2023 19:12:25 -0800 Subject: [PATCH] updates --- lua/plugins.lua | 46 ++-------------------------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 7bf5412..3e365a7 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -9,13 +9,14 @@ return { { 'fatih/vim-go', + ft = { "go", "gomod" }, config = function() vim.g.go_fmt_command = "gofumpt" vim.g.go_highlight_types = 1 vim.g.go_highlight_fields = 1 vim.g.go_highlight_functions = 1 vim.g.go_highlight_function_calls = 1 - vim.g.go_auto_type_info = 1 + vim.g.go_metalinter_command = 'golangci-lint' end }, @@ -43,43 +44,6 @@ return { end }, - { - "folke/noice.nvim", - config = function() - require("noice").setup({ - lsp = { - -- override markdown rendering so that **cmp** and other plugins use **Treesitter** - override = { - ["vim.lsp.util.convert_input_to_markdown_lines"] = true, - ["vim.lsp.util.stylize_markdown"] = true, - ["cmp.entry.get_documentation"] = true, - }, - }, - -- you can enable a preset for easier configuration - presets = { - bottom_search = true, -- use a classic bottom cmdline for search - command_palette = true, -- position the cmdline and popupmenu together - long_message_to_split = true, -- long messages will be sent to a split - inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = false, -- add a border to hover docs and signature help - }, - }) - end, - dependencies = { - "MunifTanjim/nui.nvim", - "rcarriga/nvim-notify" - } - }, - - { - "rcarriga/nvim-notify", - config = function() - require("notify").setup({ - background_colour = "#000000", - }) - end - }, - { 'mrshmllow/document-color.nvim', config = function() @@ -155,18 +119,12 @@ return { -- file explorer { 'kyazdani42/nvim-tree.lua', - tag = 'nightly', dependencies = { 'kyazdani42/nvim-web-devicons' }, config = function() require('nvim-tree').setup { sort_by = "case_sensitive", view = { adaptive_size = true, - mappings = { - list = { - { key = "u", action = "dir_up" }, - }, - }, }, renderer = { group_empty = true,