Migration of lspconfig to vim.lsp
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 39s
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 39s
This commit is contained in:
@@ -24,6 +24,7 @@ local fixers = {
|
|||||||
python = { "yapf" },
|
python = { "yapf" },
|
||||||
pascal = { "ptop" },
|
pascal = { "ptop" },
|
||||||
haskell = { "fourmolu" },
|
haskell = { "fourmolu" },
|
||||||
|
rust = { "rustfmt" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.g.ale_linters = linters
|
vim.g.ale_linters = linters
|
||||||
|
|||||||
@@ -15,41 +15,14 @@ require("mason-lspconfig").setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- require("mason-lspconfig").setup_handlers({
|
vim.lsp.enable("verible")
|
||||||
-- function(asm_lsp)
|
vim.lsp.config("verible", { cmd = { "verible-verilog-ls", "--rules_config_search" } })
|
||||||
-- require("lspconfig")[asm_lsp].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(clangd)
|
|
||||||
-- require("lspconfig")[clangd].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(lua_ls)
|
|
||||||
-- require("lspconfig")[lua_ls].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(hls)
|
|
||||||
-- require("lspconfig")[hls].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(rust_analyzer)
|
|
||||||
-- require("lspconfig")[rust_analyzer].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(vhdl_ls)
|
|
||||||
-- require("lspconfig")[vhdl_ls].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(verible)
|
|
||||||
-- require("lspconfig")[verible].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(vimls)
|
|
||||||
-- require("lspconfig")[vimls].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(texlab)
|
|
||||||
-- require("lspconfig")[texlab].setup({})
|
|
||||||
-- end,
|
|
||||||
-- function(als)
|
|
||||||
-- require("lspconfig")[als].setup({})
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
|
|
||||||
require("lspconfig").verible.setup({
|
vim.lsp.enable("clangd")
|
||||||
cmd = { "verible-verilog-ls", "--rules_config_search" },
|
vim.lsp.config("clangd", {
|
||||||
|
cmd = { "clangd" },
|
||||||
|
root_markers = { ".clangd" },
|
||||||
|
filetypes = { "c", "cpp" },
|
||||||
})
|
})
|
||||||
|
|
||||||
-- @name file_exists
|
-- @name file_exists
|
||||||
@@ -81,10 +54,5 @@ local function get_config_file()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require("lspconfig").als.setup({
|
vim.lsp.enable("als")
|
||||||
settings = {
|
vim.lsp.config("als", { projectFile = get_config_file() })
|
||||||
ada = {
|
|
||||||
projectFile = get_config_file(),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|||||||
@@ -103,3 +103,10 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
|||||||
pattern = { "*.nix" },
|
pattern = { "*.nix" },
|
||||||
callback = close_nix_interpreter,
|
callback = close_nix_interpreter,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
bf = "brainfuck",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user