fix sign, fix terminal tab, switch csharp lsp
This commit is contained in:
1 parent
e48261c322
commit
d2dc0e2582
3 files changed
+3
-12
No files matched your search
@@ -3,6 +3,7 @@ local u = require "config.utils"
|
|||||||
-- terminal
|
-- terminal
|
||||||
local m = u.mapping
|
local m = u.mapping
|
||||||
m.map("t", "<esc>", "<C-\\><C-n>")
|
m.map("t", "<esc>", "<C-\\><C-n>")
|
||||||
|
m.map("t", "<tab>", "<tab>")
|
||||||
m.map("t", "<C-n>", "<C-\\><C-n><C-w>h")
|
m.map("t", "<C-n>", "<C-\\><C-n><C-w>h")
|
||||||
m.map("t", "<C-e>", "<C-\\><C-n><C-w>j")
|
m.map("t", "<C-e>", "<C-\\><C-n><C-w>j")
|
||||||
m.map("t", "<C-i>", "<C-\\><C-n><C-w>k")
|
m.map("t", "<C-i>", "<C-\\><C-n><C-w>k")
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- diagnostics
|
-- diagnostics
|
||||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
local signs = { Error = " ", Warn = " ", Hint = "", Info = " " }
|
||||||
for type, icon in pairs(signs) do
|
for type, icon in pairs(signs) do
|
||||||
local hl = "DiagnosticSign" .. type
|
local hl = "DiagnosticSign" .. type
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
|
|||||||
@@ -28,17 +28,7 @@ local config = function()
|
|||||||
root_dir = c.util.root_pattern("package.json", "tsconfig.json", "jsconfig.json"),
|
root_dir = c.util.root_pattern("package.json", "tsconfig.json", "jsconfig.json"),
|
||||||
single_file_support = false,
|
single_file_support = false,
|
||||||
}
|
}
|
||||||
c.omnisharp.setup {
|
c.csharp_ls.setup {}
|
||||||
cmd = { "omnisharp" },
|
|
||||||
|
|
||||||
enable_editorconfig_support = true,
|
|
||||||
enable_ms_build_load_projects_on_demand = false,
|
|
||||||
enable_roslyn_analyzers = false,
|
|
||||||
organize_imports_on_format = false,
|
|
||||||
enable_import_completion = false,
|
|
||||||
sdk_include_prereleases = true,
|
|
||||||
analyze_open_documents_only = false,
|
|
||||||
}
|
|
||||||
c.typst_lsp.setup {
|
c.typst_lsp.setup {
|
||||||
cmd = { "/home/bryan/repos/typst-lsp/target/release/typst-lsp" },
|
cmd = { "/home/bryan/repos/typst-lsp/target/release/typst-lsp" },
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user