diff --git a/data/nvim/init.lua b/data/nvim/init.lua index aa819ab..e4ce6ac 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -46,11 +46,14 @@ vim.keymap.set("n", "gf", ":GoFillStruct:w") vim.keymap.set("n", "gt", ":GoAlternate") vim.keymap.set("n", "gtt", ":GoTest") --- Use vim-go +-- Use plugin vim-better-whitespace +vim.g.better_whitespace_enabled = 1 + +-- Use plugin vim-go vim.g.go_gopls_gofumpt = 1 vim.g.go_doc_popup_window = 1 --- Use copilot +-- Use plugin copilot vim.g.copilot_filetypes = { ["*"] = false, go = true, @@ -72,8 +75,8 @@ require("packer").startup(function() -- Manage itself use("wbthomason/packer.nvim") - -- https://github.com/axelf4/vim-strip-trailing-whitespace - use("axelf4/vim-strip-trailing-whitespace") + -- https://github.com/ntpeters/vim-better-whitespace + use("ntpeters/vim-better-whitespace") -- https://github.com/nvim-lualine/lualine.nvim use({ @@ -170,6 +173,15 @@ require("packer").startup(function() -- https://github.com/sbdchd/neoformat use("sbdchd/neoformat") + -- https://github.com/nvim-treesitter/nvim-treesitter + use({ + "nvim-treesitter/nvim-treesitter", + run = function() + local ts_update = require("nvim-treesitter.install").update({ with_sync = true }) + ts_update() + end, + }) + -- https://github.com/fatih/vim-go use("fatih/vim-go")