change completion and updated galaxyline
This commit is contained in:
parent
e82112e9c2
commit
374797caee
|
|
@ -55,7 +55,7 @@ return require("packer").startup(
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"glepnir/galaxyline.nvim",
|
"NTBBloodbath/galaxyline.nvim",
|
||||||
branch = "main",
|
branch = "main",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins/galaxyline"
|
require "plugins/galaxyline"
|
||||||
|
|
@ -155,9 +155,7 @@ return require("packer").startup(
|
||||||
"RishabhRD/nvim-lsputils",
|
"RishabhRD/nvim-lsputils",
|
||||||
"onsails/lspkind-nvim",
|
"onsails/lspkind-nvim",
|
||||||
"ray-x/lsp_signature.nvim",
|
"ray-x/lsp_signature.nvim",
|
||||||
"jose-elias-alvarez/nvim-lsp-ts-utils",
|
"jose-elias-alvarez/nvim-lsp-ts-utils"
|
||||||
-- "jose-elias-alvarez/null-ls.nvim",
|
|
||||||
"nvim-lua/lsp-status.nvim"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
|
|
@ -237,7 +235,7 @@ return require("packer").startup(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
tag = "v0.2.1", -- recommended to pin to a tag and update manually as there may be breaking changes
|
tag = "v0.2.1",
|
||||||
requires = {
|
requires = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"MunifTanjim/nui.nvim"
|
"MunifTanjim/nui.nvim"
|
||||||
|
|
@ -258,13 +256,25 @@ return require("packer").startup(
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
"ms-jpq/coq_nvim",
|
"hrsh7th/nvim-cmp",
|
||||||
branch = "coq",
|
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins/coq"
|
require("plugins/cmp")
|
||||||
end,
|
end,
|
||||||
setup = function()
|
requires = {
|
||||||
vim.cmd("let g:coq_settings = { 'auto_start': v:true, 'keymaps': {'manual_completion': '<c-f>'} }")
|
"L3MON4D3/LuaSnip",
|
||||||
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
"hrsh7th/cmp-buffer",
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"hrsh7th/cmp-path",
|
||||||
|
"hrsh7th/cmp-nvim-lua"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
"Saecki/crates.nvim",
|
||||||
|
event = {"BufRead Cargo.toml"},
|
||||||
|
requires = {{"nvim-lua/plenary.nvim"}},
|
||||||
|
config = function()
|
||||||
|
require("crates").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use "aklt/plantuml-syntax"
|
use "aklt/plantuml-syntax"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
local cmp = require "cmp"
|
||||||
|
|
||||||
|
options = {
|
||||||
|
confirm_opts = {
|
||||||
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
select = false
|
||||||
|
},
|
||||||
|
experimental = {
|
||||||
|
ghost_text = true,
|
||||||
|
native_menu = false
|
||||||
|
},
|
||||||
|
formatting = {
|
||||||
|
kind_icons = {
|
||||||
|
Text = " ",
|
||||||
|
Method = " ",
|
||||||
|
Function = " ",
|
||||||
|
Constructor = " ",
|
||||||
|
Field = "ﰠ ",
|
||||||
|
Variable = " ",
|
||||||
|
Class = "ﴯ ",
|
||||||
|
Interface = " ",
|
||||||
|
Module = " ",
|
||||||
|
Property = "ﰠ ",
|
||||||
|
Unit = "塞 ",
|
||||||
|
Value = " ",
|
||||||
|
Enum = " ",
|
||||||
|
Keyword = " ",
|
||||||
|
Snippet = " ",
|
||||||
|
Color = " ",
|
||||||
|
File = " ",
|
||||||
|
Reference = " ",
|
||||||
|
Folder = " ",
|
||||||
|
EnumMember = " ",
|
||||||
|
Constant = " ",
|
||||||
|
Struct = "פּ ",
|
||||||
|
Event = " ",
|
||||||
|
Operator = " ",
|
||||||
|
TypeParameter = " "
|
||||||
|
},
|
||||||
|
source_names = {
|
||||||
|
nvim_lsp = "(LSP)",
|
||||||
|
emoji = "(Emoji)",
|
||||||
|
path = "(Path)",
|
||||||
|
calc = "(Calc)",
|
||||||
|
cmp_tabnine = "(Tabnine)",
|
||||||
|
vsnip = "(Snippet)",
|
||||||
|
luasnip = "(Snippet)",
|
||||||
|
buffer = "(Buffer)"
|
||||||
|
},
|
||||||
|
duplicates = {
|
||||||
|
buffer = 1,
|
||||||
|
path = 1,
|
||||||
|
nvim_lsp = 0,
|
||||||
|
luasnip = 1
|
||||||
|
},
|
||||||
|
duplicates_default = 0,
|
||||||
|
format = function(entry, vim_item)
|
||||||
|
vim_item.kind = options.formatting.kind_icons[vim_item.kind]
|
||||||
|
vim_item.menu = options.formatting.source_names[entry.source.name]
|
||||||
|
vim_item.dup = options.formatting.duplicates[entry.source.name] or options.formatting.duplicates_default
|
||||||
|
return vim_item
|
||||||
|
end
|
||||||
|
},
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
require("luasnip").lsp_expand(args.body)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
documentation = {
|
||||||
|
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}
|
||||||
|
},
|
||||||
|
mapping = {
|
||||||
|
["<C-f>"] = cmp.mapping.complete(),
|
||||||
|
["<C-e>"] = cmp.mapping.close(),
|
||||||
|
["<CR>"] = cmp.mapping.confirm({select = true})
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{name = "nvim_lsp"},
|
||||||
|
{name = "path"},
|
||||||
|
{name = "luasnip"},
|
||||||
|
{name = "nvim_lua"},
|
||||||
|
{name = "buffer"},
|
||||||
|
{name = "calc"},
|
||||||
|
{name = "emoji"},
|
||||||
|
{name = "crates"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cmp.setup(options)
|
||||||
|
|
@ -27,6 +27,15 @@ require("formatter").setup(
|
||||||
stdin = true
|
stdin = true
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
},
|
||||||
|
rust = {
|
||||||
|
function()
|
||||||
|
return {
|
||||||
|
exe = "rustfmt",
|
||||||
|
args = {"--emit=stdout"},
|
||||||
|
stdin = true
|
||||||
|
}
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -36,7 +45,7 @@ vim.api.nvim_exec(
|
||||||
[[
|
[[
|
||||||
augroup FormatAutogroup
|
augroup FormatAutogroup
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWritePost *.lua,*.tsx,*.ts,*.js,*.jsx,*.json FormatWrite
|
autocmd BufWritePost *.rs,*.lua,*.tsx,*.ts,*.js,*.jsx,*.json FormatWrite
|
||||||
augroup END
|
augroup END
|
||||||
]],
|
]],
|
||||||
true
|
true
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,36 @@
|
||||||
local gl = require("galaxyline")
|
local gl = require("galaxyline")
|
||||||
local colors = require("galaxyline.theme").default
|
local colors = require("galaxyline.themes.colors").get_color
|
||||||
local theme = require("monokai")
|
local theme = require("monokai")
|
||||||
local condition = require("galaxyline.condition")
|
local condition = require("galaxyline.condition")
|
||||||
local gls = gl.section
|
local gls = gl.section
|
||||||
colors.bg = theme.classic.base3
|
|
||||||
gl.short_line_list = {"NvimTree", "vista", "dbui", "packer"}
|
gl.short_line_list = {"NvimTree", "vista", "dbui", "packer"}
|
||||||
|
local color_bg = "#333842"
|
||||||
|
|
||||||
gls.left[2] = {
|
gls.left[2] = {
|
||||||
ViMode = {
|
ViMode = {
|
||||||
provider = function()
|
provider = function()
|
||||||
-- auto change color according the vim mode
|
-- auto change color according the vim mode
|
||||||
local mode_color = {
|
local mode_color = {
|
||||||
n = colors.green,
|
n = colors("green"),
|
||||||
i = colors.red,
|
i = colors("red"),
|
||||||
v = colors.blue,
|
v = colors("blue"),
|
||||||
[""] = colors.blue,
|
[""] = colors("blue"),
|
||||||
V = colors.blue,
|
V = colors("blue"),
|
||||||
c = colors.magenta,
|
c = colors("magenta"),
|
||||||
no = colors.red,
|
no = colors("red"),
|
||||||
s = colors.orange,
|
s = colors("orange"),
|
||||||
S = colors.orange,
|
S = colors("orange"),
|
||||||
[""] = colors.orange,
|
[""] = colors("orange"),
|
||||||
ic = colors.yellow,
|
ic = colors("yellow"),
|
||||||
R = colors.violet,
|
R = colors("violet"),
|
||||||
Rv = colors.violet,
|
Rv = colors("violet"),
|
||||||
cv = colors.red,
|
cv = colors("red"),
|
||||||
ce = colors.red,
|
ce = colors("red"),
|
||||||
r = colors.cyan,
|
r = colors("cyan"),
|
||||||
rm = colors.cyan,
|
rm = colors("cyan"),
|
||||||
["r?"] = colors.cyan,
|
["r?"] = colors("cyan"),
|
||||||
["!"] = colors.red,
|
["!"] = colors("red"),
|
||||||
t = colors.red
|
t = colors("red")
|
||||||
}
|
}
|
||||||
local mode_map = {
|
local mode_map = {
|
||||||
["n"] = "NORMAL ",
|
["n"] = "NORMAL ",
|
||||||
|
|
@ -53,12 +53,12 @@ gls.left[2] = {
|
||||||
["!"] = "SHELL ",
|
["!"] = "SHELL ",
|
||||||
["t"] = "TERMINAL "
|
["t"] = "TERMINAL "
|
||||||
}
|
}
|
||||||
vim.api.nvim_command("hi GalaxyViMode guibg=" .. mode_color[vim.fn.mode()])
|
vim.api.nvim_command("hi GalaxyViMode guibg=" .. mode_color[vim.fn.mode()]())
|
||||||
return " " .. mode_map[vim.fn.mode()]
|
return " " .. mode_map[vim.fn.mode()]
|
||||||
end,
|
end,
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {nil, colors.bg},
|
separator_highlight = {nil, color_bg},
|
||||||
highlight = {colors.bg, colors.bg, "bold"}
|
highlight = {color_bg, color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gls.left[3] = {
|
gls.left[3] = {
|
||||||
|
|
@ -72,14 +72,14 @@ gls.left[3] = {
|
||||||
return " " .. vim.call("reg_recording") .. " "
|
return " " .. vim.call("reg_recording") .. " "
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
highlight = {colors.red, colors.bg}
|
highlight = {colors("red"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gls.left[5] = {
|
gls.left[5] = {
|
||||||
FileIcon = {
|
FileIcon = {
|
||||||
provider = "FileIcon",
|
provider = "FileIcon",
|
||||||
condition = condition.buffer_not_empty,
|
condition = condition.buffer_not_empty,
|
||||||
highlight = {require("galaxyline.provider_fileinfo").get_file_icon_color, colors.bg}
|
highlight = {require("galaxyline.providers.fileinfo").get_file_icon_color, color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,7 +87,7 @@ gls.left[6] = {
|
||||||
FileName = {
|
FileName = {
|
||||||
provider = "FileName",
|
provider = "FileName",
|
||||||
condition = condition.buffer_not_empty,
|
condition = condition.buffer_not_empty,
|
||||||
highlight = {colors.magenta, colors.bg, "bold"}
|
highlight = {colors("magenta"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,8 +95,8 @@ gls.left[7] = {
|
||||||
LineInfo = {
|
LineInfo = {
|
||||||
provider = "LineColumn",
|
provider = "LineColumn",
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {"NONE", colors.bg},
|
separator_highlight = {"NONE", color_bg},
|
||||||
highlight = {colors.fg, colors.bg}
|
highlight = {colors("fg"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,8 +104,8 @@ gls.left[8] = {
|
||||||
PerCent = {
|
PerCent = {
|
||||||
provider = "LinePercent",
|
provider = "LinePercent",
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {"NONE", colors.bg},
|
separator_highlight = {"NONE", color_bg},
|
||||||
highlight = {colors.fg, colors.bg, "bold"}
|
highlight = {colors("fg"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -113,14 +113,14 @@ gls.left[9] = {
|
||||||
DiagnosticError = {
|
DiagnosticError = {
|
||||||
provider = "DiagnosticError",
|
provider = "DiagnosticError",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.red, colors.bg}
|
highlight = {colors("red"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gls.left[10] = {
|
gls.left[10] = {
|
||||||
DiagnosticWarn = {
|
DiagnosticWarn = {
|
||||||
provider = "DiagnosticWarn",
|
provider = "DiagnosticWarn",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.yellow, colors.bg}
|
highlight = {colors("yellow"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -128,7 +128,7 @@ gls.left[11] = {
|
||||||
DiagnosticHint = {
|
DiagnosticHint = {
|
||||||
provider = "DiagnosticHint",
|
provider = "DiagnosticHint",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.cyan, colors.bg}
|
highlight = {colors("cyan"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -136,19 +136,7 @@ gls.left[12] = {
|
||||||
DiagnosticInfo = {
|
DiagnosticInfo = {
|
||||||
provider = "DiagnosticInfo",
|
provider = "DiagnosticInfo",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.blue, colors.bg}
|
highlight = {colors("blue"), color_bg}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[0] = {
|
|
||||||
LeftEnd = {
|
|
||||||
provider = function()
|
|
||||||
return require("lsp-status").status()
|
|
||||||
end,
|
|
||||||
condition = condition.hide_in_width,
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {"NONE", colors.bg},
|
|
||||||
highlight = {"NONE", colors.bg}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -157,8 +145,8 @@ gls.right[1] = {
|
||||||
provider = "FileEncode",
|
provider = "FileEncode",
|
||||||
condition = condition.hide_in_width,
|
condition = condition.hide_in_width,
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {"NONE", colors.bg},
|
separator_highlight = {"NONE", color_bg},
|
||||||
highlight = {colors.green, colors.bg, "bold"}
|
highlight = {colors("green"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -167,8 +155,8 @@ gls.right[2] = {
|
||||||
provider = "FileFormat",
|
provider = "FileFormat",
|
||||||
condition = condition.hide_in_width,
|
condition = condition.hide_in_width,
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {"NONE", colors.bg},
|
separator_highlight = {"NONE", color_bg},
|
||||||
highlight = {colors.green, colors.bg, "bold"}
|
highlight = {colors("green"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,8 +167,8 @@ gls.right[3] = {
|
||||||
end,
|
end,
|
||||||
condition = condition.check_git_workspace,
|
condition = condition.check_git_workspace,
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {"NONE", colors.bg},
|
separator_highlight = {"NONE", color_bg},
|
||||||
highlight = {colors.violet, colors.bg, "bold"}
|
highlight = {colors("violet"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -188,7 +176,7 @@ gls.right[4] = {
|
||||||
GitBranch = {
|
GitBranch = {
|
||||||
provider = "GitBranch",
|
provider = "GitBranch",
|
||||||
condition = condition.check_git_workspace,
|
condition = condition.check_git_workspace,
|
||||||
highlight = {colors.violet, colors.bg, "bold"}
|
highlight = {colors("violet"), color_bg, "bold"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -196,10 +184,10 @@ gls.right[5] = {
|
||||||
DiffAdd = {
|
DiffAdd = {
|
||||||
provider = "DiffAdd",
|
provider = "DiffAdd",
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {nil, colors.bg},
|
separator_highlight = {nil, color_bg},
|
||||||
condition = condition.hide_in_width,
|
condition = condition.hide_in_width,
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.green, colors.bg}
|
highlight = {colors("green"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gls.right[6] = {
|
gls.right[6] = {
|
||||||
|
|
@ -207,7 +195,7 @@ gls.right[6] = {
|
||||||
provider = "DiffModified",
|
provider = "DiffModified",
|
||||||
condition = condition.hide_in_width,
|
condition = condition.hide_in_width,
|
||||||
icon = " 柳",
|
icon = " 柳",
|
||||||
highlight = {colors.orane, colors.bg}
|
highlight = {colors("orane"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gls.right[7] = {
|
gls.right[7] = {
|
||||||
|
|
@ -215,7 +203,7 @@ gls.right[7] = {
|
||||||
provider = "DiffRemove",
|
provider = "DiffRemove",
|
||||||
condition = condition.hide_in_width,
|
condition = condition.hide_in_width,
|
||||||
icon = " ",
|
icon = " ",
|
||||||
highlight = {colors.red, colors.bg}
|
highlight = {colors("red"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -226,9 +214,9 @@ gls.short_line_left[1] = {
|
||||||
ShortLineFileName = {
|
ShortLineFileName = {
|
||||||
provider = "FileName",
|
provider = "FileName",
|
||||||
condition = condition.buffer_not_empty,
|
condition = condition.buffer_not_empty,
|
||||||
highlight = {colors.fg, colors.bg},
|
highlight = {colors("fg"), color_bg},
|
||||||
separator = " ",
|
separator = " ",
|
||||||
separator_highlight = {nil, colors.bg}
|
separator_highlight = {nil, color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -238,6 +226,6 @@ gls.short_line_left[1] = {
|
||||||
gls.short_line_right[1] = {
|
gls.short_line_right[1] = {
|
||||||
BufferIcon = {
|
BufferIcon = {
|
||||||
provider = "BufferIcon",
|
provider = "BufferIcon",
|
||||||
highlight = {colors.fg, colors.bg}
|
highlight = {colors("fg"), color_bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,6 @@ signHint["texthl"] = "DiagnosticSignHint"
|
||||||
vim.fn.sign_define("DiagnosticSignHint", signHint)
|
vim.fn.sign_define("DiagnosticSignHint", signHint)
|
||||||
vim.fn.sign_define("DiagnosticSignInfo", signHint)
|
vim.fn.sign_define("DiagnosticSignInfo", signHint)
|
||||||
|
|
||||||
-- Lsp Status
|
|
||||||
local lsp_status = require("lsp-status")
|
|
||||||
|
|
||||||
-- Register the progress handler
|
|
||||||
lsp_status.register_progress()
|
|
||||||
|
|
||||||
--- Completion Icons
|
--- Completion Icons
|
||||||
require("lspkind").init({})
|
require("lspkind").init({})
|
||||||
|
|
||||||
|
|
@ -64,8 +58,8 @@ local on_attach = function(client, bufnr)
|
||||||
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
|
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
|
||||||
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts)
|
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts)
|
||||||
buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts)
|
buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts)
|
||||||
lsp_status.on_attach(client, bufnr)
|
|
||||||
end
|
end
|
||||||
|
local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
|
|
||||||
require "lspconfig".jsonls.setup {
|
require "lspconfig".jsonls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
@ -75,7 +69,7 @@ require "lspconfig".jsonls.setup {
|
||||||
settings = {
|
settings = {
|
||||||
json = require "json-schema"
|
json = require "json-schema"
|
||||||
},
|
},
|
||||||
capabilities = lsp_status.capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
|
|
||||||
require "lspconfig".tsserver.setup {
|
require "lspconfig".tsserver.setup {
|
||||||
|
|
@ -92,7 +86,7 @@ require "lspconfig".tsserver.setup {
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 150
|
debounce_text_changes = 150
|
||||||
},
|
},
|
||||||
capabilities = lsp_status.capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
|
|
||||||
require "lspconfig".eslint.setup {
|
require "lspconfig".eslint.setup {
|
||||||
|
|
@ -106,7 +100,7 @@ require "lspconfig".eslint.setup {
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
capabilities = lsp_status.capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[ require "lspconfig".java_language_server.setup {
|
--[[ require "lspconfig".java_language_server.setup {
|
||||||
|
|
@ -120,6 +114,6 @@ for _, lsp in ipairs(servers) do
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 150
|
debounce_text_changes = 150
|
||||||
},
|
},
|
||||||
capabilities = lsp_status.capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,5 @@ config
|
||||||
technic/!
|
technic/!
|
||||||
ConfigManager
|
ConfigManager
|
||||||
Grenning
|
Grenning
|
||||||
|
BWL
|
||||||
|
Marriot
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue