46 lines
971 B
Lua
46 lines
971 B
Lua
-- vim: ft=lua
|
|
|
|
local nvim_lsp = require('lspconfig')
|
|
|
|
nvim_lsp.elixirls.setup({
|
|
cmd = {'/home/erwin/elixir-ls/language_server.sh'},
|
|
settings = {
|
|
elixirLS = {
|
|
fetchDeps = false
|
|
}
|
|
}
|
|
})
|
|
|
|
local rust_opts = {
|
|
tools = {
|
|
autoSetHints = true,
|
|
hover_with_actions = true,
|
|
runnables = {
|
|
use_telescope = true,
|
|
},
|
|
inlay_hints = {
|
|
show_parameter_hints = true,
|
|
parameter_hints_prefix = '<-',
|
|
other_hints_prefix = '=>',
|
|
max_len_align = false,
|
|
max_len_align_padding = 1,
|
|
right_align = false,
|
|
right_align_padding = 7,
|
|
},
|
|
hover_actions = {
|
|
border = {
|
|
{'╭', 'FloatBorder'},
|
|
{'─', 'FloatBorder'},
|
|
{'╮', 'FloatBorder'},
|
|
{'│', 'FloatBorder'},
|
|
{'╯', 'FloatBorder'},
|
|
{'─', 'FloatBorder'},
|
|
{'╰', 'FloatBorder'},
|
|
{'│', 'FloatBorder'},
|
|
},
|
|
},
|
|
},
|
|
server = {},
|
|
}
|
|
|
|
require('rust-tools').setup(rust_opts)
|