lsp: jails

master
Dominik Madarász 2023-07-19 19:17:22 +02:00
parent 4c420826b3
commit 7af626de91
4 changed files with 32 additions and 1 deletions

View File

@ -70,6 +70,30 @@ mason_lspconfig.setup_handlers {
} }
local lsp = require('lspconfig') local lsp = require('lspconfig')
local configs = require('lspconfig.configs')
configs.jails = {
default_config = {
cmd = {'jails'},
filetypes = {'jai'},
root_dir = function(fname)
return lsp.util.find_git_ancestor(fname)
end,
name = 'jails',
settinsgs = {}
}
}
lsp.jails.setup {
capabilities = capabilities,
on_attach = on_attach
}
local sign_cfg = {
}
require('lsp_signature').setup(sign_cfg);
-- Diagnostic symbols in the sign column (gutter) -- Diagnostic symbols in the sign column (gutter)
local signs = { local signs = {

View File

@ -67,4 +67,5 @@ vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz") vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz") vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
vim.keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true }) vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })

View File

@ -50,7 +50,7 @@ vim.o.termguicolors = true
vim.o.scrolloff = 8 vim.o.scrolloff = 8
vim.o.signcolumn = "yes" vim.o.signcolumn = "yes"
vim.opt.isfname:append("@-@") vim.opt.isfname:append("@-@")
vim.o.colorcolumn = "80" vim.o.colorcolumn = "120"
-- indent setup -- indent setup
vim.o.list = false vim.o.list = false

View File

@ -127,4 +127,10 @@ return {
'mbbill/undotree' 'mbbill/undotree'
}, },
{
'rust-lang/rust.vim'
},
{ 'ray-x/lsp_signature.nvim' },
} }