-
-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm mason.ensure_installed & clean some conf
- Loading branch information
Showing
4 changed files
with
23 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
---@type ChadrcConfig | ||
local M = {} | ||
|
||
M.ui = { | ||
M.base46 = { | ||
theme = "onedark", | ||
|
||
-- hl_override = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ local options = { | |
-- }, | ||
} | ||
|
||
require("conform").setup(options) | ||
return options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
-- 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 | ||
-- load defaults i.e lua_lsp | ||
require("nvchad.configs.lspconfig").defaults() | ||
|
||
local lspconfig = require "lspconfig" | ||
|
||
-- EXAMPLE | ||
local servers = { "html", "cssls" } | ||
local nvlsp = require "nvchad.configs.lspconfig" | ||
|
||
-- lsps with default config | ||
for _, lsp in ipairs(servers) do | ||
lspconfig[lsp].setup { | ||
on_attach = on_attach, | ||
on_init = on_init, | ||
capabilities = capabilities, | ||
on_attach = nvlsp.on_attach, | ||
on_init = nvlsp.on_init, | ||
capabilities = nvlsp.capabilities, | ||
} | ||
end | ||
|
||
-- typescript | ||
lspconfig.tsserver.setup { | ||
on_attach = on_attach, | ||
on_init = on_init, | ||
capabilities = capabilities, | ||
} | ||
-- configuring single server, example: typescript | ||
-- lspconfig.tsserver.setup { | ||
-- on_attach = on_attach, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
-- on_init = on_init, | ||
-- capabilities = capabilities, | ||
-- } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wouldn't this now also need to be changed to
nvlsp.on_attach
?