mirror of https://github.com/LazyVim/starter
Adding some lsp changes.
parent
7558e2e529
commit
1e163a9099
|
@ -2,6 +2,13 @@ return {
|
|||
-- add any tools you want to have installed below
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls" },
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
|
@ -11,4 +18,22 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require("lspconfig").lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }, -- Avoid "undefined global 'vim'"
|
||||
},
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ return {
|
|||
build = "make",
|
||||
config = function()
|
||||
require("telescope").load_extension("fzf")
|
||||
require("telescope.builtin").live_grep({ search_dirs = { "~/.ssh/known_hosts" } })
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -2,10 +2,11 @@ return {
|
|||
-- amongst your other plugins
|
||||
-- { "akinsho/toggleterm.nvim", version = "*", config = true },
|
||||
-- or
|
||||
{'akinsho/toggleterm.nvim',
|
||||
{
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = "*",
|
||||
opts = {--[[ things you want to change go here]]
|
||||
direction = "horiztonal",
|
||||
direction = "vertical",
|
||||
},
|
||||
config = function()
|
||||
local toggleterm = require('toggleterm')
|
||||
|
|
Loading…
Reference in New Issue