diff --git a/chezmoi/dot_config/nvim/lua/aleidk/plugins/formatter.lua b/chezmoi/dot_config/nvim/lua/aleidk/plugins/formatter.lua index b5899dc..60dd95a 100644 --- a/chezmoi/dot_config/nvim/lua/aleidk/plugins/formatter.lua +++ b/chezmoi/dot_config/nvim/lua/aleidk/plugins/formatter.lua @@ -27,6 +27,7 @@ return { typescript = { { "prettierd", "prettier" } }, typescriptreact = { { "prettierd", "prettier" } }, zsh = { "shfmt" }, + go = { { "gofumpt", "goimports_reviser", "golines" } }, }, format_on_save = function(bufnr) -- Disable with a global or buffer-local variable diff --git a/chezmoi/dot_config/nvim/lua/aleidk/plugins/init.lua b/chezmoi/dot_config/nvim/lua/aleidk/plugins/init.lua index a8e2d50..f0cf148 100644 --- a/chezmoi/dot_config/nvim/lua/aleidk/plugins/init.lua +++ b/chezmoi/dot_config/nvim/lua/aleidk/plugins/init.lua @@ -84,4 +84,12 @@ return { }, }, }, + + { + "olexsmir/gopher.nvim", + ft = "go", + build = function() + vim.cmd([[silent! GoInstallDeps]]) + end, + }, } diff --git a/chezmoi/dot_config/nvim/lua/aleidk/plugins/lsp.lua b/chezmoi/dot_config/nvim/lua/aleidk/plugins/lsp.lua index 750af7b..6dc5d90 100644 --- a/chezmoi/dot_config/nvim/lua/aleidk/plugins/lsp.lua +++ b/chezmoi/dot_config/nvim/lua/aleidk/plugins/lsp.lua @@ -7,7 +7,7 @@ return { { "williamboman/mason.nvim" }, "williamboman/mason-lspconfig.nvim", -- Additional lua configuration, makes nvim stuff amazing! - { "folke/neodev.nvim", opts = {} }, + { "folke/neodev.nvim", opts = {} }, }, config = function() @@ -60,6 +60,17 @@ return { html = {}, pyright = {}, phpactor = {}, + gopls = { + settings = { + gopls = { + completeUnimported = true, + usePlaceholders = true, + analyses = { + unusedparams = true, + }, + }, + }, + }, rust_analyzer = { settings = { ["rust-analyzer"] = { diff --git a/chezmoi/dot_config/nvim/original_lazy-lock.json b/chezmoi/dot_config/nvim/original_lazy-lock.json index 3e4ad18..0adc533 100644 --- a/chezmoi/dot_config/nvim/original_lazy-lock.json +++ b/chezmoi/dot_config/nvim/original_lazy-lock.json @@ -21,9 +21,10 @@ "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "friendly-snippets": { "branch": "main", "commit": "43727c2ff84240e55d4069ec3e6158d74cb534b6" }, "gitsigns.nvim": { "branch": "main", "commit": "5a9a6ac29a7805c4783cda21b80a1e361964b3f2" }, + "gopher.nvim": { "branch": "main", "commit": "ac27f4b6794c872140fb205313d79ab166892fe9" }, "grapple.nvim": { "branch": "main", "commit": "8648afb68bbee59b06c6a66436d6a6083daa569b" }, "indent-blankline.nvim": { "branch": "master", "commit": "046e2cf04e08ece927bacbfb87c5b35c0b636546" }, - "lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" }, + "lazy.nvim": { "branch": "main", "commit": "16603c6917435d8446f7357cb61095138a417085" }, "lazygit.nvim": { "branch": "main", "commit": "de35012036d43bca03628d40d083f7c02a4cda3f" }, "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "9453e3d6cd2ca45d96e20f343e8f1b927364b630" }, @@ -43,9 +44,9 @@ "nvim-cmp": { "branch": "main", "commit": "51260c02a8ffded8e16162dcf41a23ec90cfba62" }, "nvim-lint": { "branch": "master", "commit": "962a76877a4479a535b935bd7ef35ad41ba308b2" }, "nvim-lspconfig": { "branch": "master", "commit": "6c797ff9324094e333e2ace9526ca4a62ad9d1ca" }, - "nvim-treesitter": { "branch": "master", "commit": "b91ae14fc3bb801c7ea69bc283fe860b32b5163d" }, - "nvim-treesitter-context": { "branch": "master", "commit": "f62bfe19e0fbc13ae95649dfb3cf22f4ff85b683" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" }, + "nvim-treesitter": { "branch": "master", "commit": "40e8c92f99ef26625ff2206f5e183ac3109f20ba" }, + "nvim-treesitter-context": { "branch": "master", "commit": "8aa32aa6b84dda357849dbc0f775e69f2e04c041" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "eb208bfdfcf76efea0424747e23e44641e13aaa6" }, "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" }, "nvim-web-devicons": { "branch": "master", "commit": "5de460ca7595806044eced31e3c36c159a493857" }, diff --git a/chezmoi/executable_dot_zshrc b/chezmoi/executable_dot_zshrc index 42df229..11ffc1e 100644 --- a/chezmoi/executable_dot_zshrc +++ b/chezmoi/executable_dot_zshrc @@ -28,6 +28,7 @@ zinit light Aloxaf/fzf-tab # │ Oh My Zsh snippets │ # ╰──────────────────────────────────────────────────────────╯ zinit ice as"completion"; zinit snippet "https://raw.githubusercontent.com/sharkdp/fd/master/contrib/completion/_fd" +zinit ice as"completion"; zinit snippet OMZP::gh # svn is deprecated, zinit is working in replacing in favor of git: https://github.com/zdharma-continuum/zinit/issues/504 # In the meantime, this plugins will not work @@ -39,7 +40,6 @@ zinit snippet OMZP::colored-man-pages zinit snippet OMZP::dnf zinit snippet OMZP::docker zinit snippet OMZP::docker-compose -zinit snippet OMZP::gh zinit snippet OMZP::git zinit snippet OMZP::systemd