mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-09 07:28:38 -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,15 +1,15 @@
|
|||
local options = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
-- css = { "prettier" },
|
||||
-- html = { "prettier" },
|
||||
css = { "prettier" },
|
||||
html = { "prettier" },
|
||||
},
|
||||
|
||||
-- format_on_save = {
|
||||
-- -- These options will be passed to conform.format()
|
||||
-- timeout_ms = 500,
|
||||
-- lsp_fallback = true,
|
||||
-- },
|
||||
format_on_save = {
|
||||
-- These options will be passed to conform.format()
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
}
|
||||
|
||||
require("conform").setup(options)
|
||||
|
|
|
|||
1
lua/configs/go.lua
Normal file
1
lua/configs/go.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
require("go").setup()
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
-- EXAMPLE
|
||||
-- EXAMPLE
|
||||
local on_attach = require("nvchad.configs.lspconfig").on_attach
|
||||
local on_init = require("nvchad.configs.lspconfig").on_init
|
||||
local capabilities = require("nvchad.configs.lspconfig").capabilities
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
local servers = { "html", "cssls" }
|
||||
local servers = { "html", "cssls", "gopls" }
|
||||
|
||||
-- lsps with default config
|
||||
for _, lsp in ipairs(servers) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue