asd
This commit is contained in:
parent
d0b9672730
commit
2cd8efc1df
18 changed files with 241 additions and 212 deletions
21
init.lua
21
init.lua
|
@ -1,4 +1,23 @@
|
|||
return {
|
||||
colorscheme = "material",
|
||||
lsp = { formatting = { format_on_save = false } },
|
||||
lsp = {
|
||||
formatting = { format_on_save = false },
|
||||
-- skip_setup = { "rust_analyzer" },
|
||||
setup_handlers = {
|
||||
-- add custom handler
|
||||
rust_analyzer = function(_, opts) require("rust-tools").setup { server = opts } end,
|
||||
},
|
||||
-- server_registration = function(server, opts)
|
||||
-- if server == "rust_analyzer" then
|
||||
-- require("rust-tools").setup { server = opts }
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- require("lspconfig")[server].setup(opts)
|
||||
-- end,
|
||||
},
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
underline = true,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue