mirror of https://github.com/zpl-zak/nvimrc
lsp: jails
parent
4c420826b3
commit
7af626de91
|
@ -70,6 +70,30 @@ mason_lspconfig.setup_handlers {
|
|||
}
|
||||
|
||||
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)
|
||||
local signs = {
|
||||
|
|
|
@ -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>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 })
|
||||
|
|
|
@ -50,7 +50,7 @@ vim.o.termguicolors = true
|
|||
vim.o.scrolloff = 8
|
||||
vim.o.signcolumn = "yes"
|
||||
vim.opt.isfname:append("@-@")
|
||||
vim.o.colorcolumn = "80"
|
||||
vim.o.colorcolumn = "120"
|
||||
|
||||
-- indent setup
|
||||
vim.o.list = false
|
||||
|
|
|
@ -127,4 +127,10 @@ return {
|
|||
'mbbill/undotree'
|
||||
},
|
||||
|
||||
{
|
||||
'rust-lang/rust.vim'
|
||||
},
|
||||
|
||||
{ 'ray-x/lsp_signature.nvim' },
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue