refactor(LSP): use the new vim.lsp.* functions to set up LSP servers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
config = require("ow.lsp").setup,
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user