mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-11 00:10:30 -07:00
Add go.nvim + wsl optimizations
This commit is contained in:
parent
63046022c9
commit
8e6e367f7a
6 changed files with 74 additions and 41 deletions
|
|
@ -1,31 +1,52 @@
|
|||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
-- event = 'BufWritePre', -- uncomment for format on save
|
||||
event = "BufWritePre", -- uncomment for format on save
|
||||
config = function()
|
||||
require "configs.conform"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ray-x/go.nvim",
|
||||
lazy = false,
|
||||
dependencies = { -- optional packages
|
||||
-- "ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require "configs.go"
|
||||
end,
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod", "gowork", "gotmpl" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
},
|
||||
|
||||
-- These are some examples, uncomment them if you want to see them work!
|
||||
-- {
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- config = function()
|
||||
-- require("nvchad.configs.lspconfig").defaults()
|
||||
-- require "configs.lspconfig"
|
||||
-- end,
|
||||
-- },
|
||||
--
|
||||
-- {
|
||||
-- "williamboman/mason.nvim",
|
||||
-- opts = {
|
||||
-- ensure_installed = {
|
||||
-- "lua-language-server", "stylua",
|
||||
-- "html-lsp", "css-lsp" , "prettier"
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
--
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua-language-server",
|
||||
"stylua",
|
||||
"html-lsp",
|
||||
"css-lsp",
|
||||
"prettier",
|
||||
"gopls",
|
||||
"goimports",
|
||||
"golines",
|
||||
"gofumpt",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- opts = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue