refactor(LSP): use the new vim.lsp.* functions to set up LSP servers

This commit is contained in:
2025-06-05 11:30:14 +02:00
parent c569c12ae7
commit e8ff3fed7c
29 changed files with 556 additions and 1744 deletions
+1 -2
View File
@@ -38,7 +38,7 @@ return {
require("luasnip.loaders.from_vscode").lazy_load()
end,
build = (
require("ow.utils").os_name ~= "Windows_NT"
require("ow.util").os_name ~= "Windows_NT"
and "make install_jsregexp"
or nil
),
@@ -55,7 +55,6 @@ return {
config = function()
local cmp = require("cmp")
local luasnip = require("luasnip")
local utils = require("ow.utils")
local lspkind = require("lspkind")
---@type cmp.ConfigSchema
+5
View File
@@ -0,0 +1,5 @@
---@type LazyPluginSpec
return {
"neovim/nvim-lspconfig",
config = require("ow.lsp").setup,
}
+3 -3
View File
@@ -1,12 +1,12 @@
local utils = require("ow.utils")
local util = require("ow.util")
local function override_highlights()
-- File Icon
local hl = utils.get_hl_source("NvimTreeFileIcon")
local hl = util.get_hl_source("NvimTreeFileIcon")
vim.api.nvim_set_hl(0, "NvimTreeFileIcon", { fg = hl.fg, bg = nil })
-- Symlink Icon
hl = utils.get_hl_source("NvimTreeSymlinkIcon")
hl = util.get_hl_source("NvimTreeSymlinkIcon")
vim.api.nvim_set_hl(0, "NvimTreeSymlinkIcon", { fg = hl.fg, bg = nil })
end