Adding some lsp changes.

pull/126/head
lefv 2025-02-20 22:13:26 -05:00
parent 7558e2e529
commit 1e163a9099
3 changed files with 30 additions and 3 deletions

View File

@ -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,
},
}

View File

@ -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,
},
},

View File

@ -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')