nvim
This commit is contained in:
parent
83d6e3f7cf
commit
bda21856b1
10 changed files with 155 additions and 0 deletions
17
.config/nvim/lua/config/lspconfig.lua
Normal file
17
.config/nvim/lua/config/lspconfig.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
local Util = require("lazy.util")
|
||||
|
||||
---@class PluginLspOpts
|
||||
local opts = {
|
||||
diagnostics = {
|
||||
underline = true,
|
||||
}
|
||||
}
|
||||
|
||||
local configFn = function(_, opts)
|
||||
Util.format.register(Util.lsp.formatter())
|
||||
end
|
||||
|
||||
return {
|
||||
opts = opts,
|
||||
config = configFn,
|
||||
}
|
12
.config/nvim/lua/config/nvim-treesitter.lua
Normal file
12
.config/nvim/lua/config/nvim-treesitter.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "lua", "go" },
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
|
||||
return config
|
Loading…
Add table
Add a link
Reference in a new issue