nvim
This commit is contained in:
parent
83d6e3f7cf
commit
bda21856b1
10 changed files with 155 additions and 0 deletions
24
.config/nvim/lua/plugins/lsp.lua
Normal file
24
.config/nvim/lua/plugins/lsp.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
cmd = "Mason",
|
||||
build = ":MasonUpdate",
|
||||
},
|
||||
},
|
||||
---@class PluginLspOpts
|
||||
opts = {
|
||||
---@type lspconfig.options
|
||||
servers = {
|
||||
lua_ls = {
|
||||
settings = { Lua = { diagnostics = { globals = { "vim" }}}},
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("mason").setup()
|
||||
end
|
||||
}
|
||||
|
17
.config/nvim/lua/plugins/none-ls.lua
Normal file
17
.config/nvim/lua/plugins/none-ls.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = { "mason.nvim" },
|
||||
opts = function()
|
||||
local null_ls = require("null-ls")
|
||||
local formatting = null_ls.builtins.formatting
|
||||
local diagnostics = null_ls.builtins.diagnostics
|
||||
local code_actions = null_ls.builtins.code_actions
|
||||
local completion = null_ls.builtins.completion
|
||||
return {
|
||||
sources = {
|
||||
formatting.stylua,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
7
.config/nvim/lua/plugins/telescope.lua
Normal file
7
.config/nvim/lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.5',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
}
|
14
.config/nvim/lua/plugins/treesitter.lua
Normal file
14
.config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function(_, opts)
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "lua", "go" },
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue