Configured anyrun
This commit is contained in:
parent
d0073fbee4
commit
c86e6c6d5e
9 changed files with 209 additions and 53 deletions
dotfiles/neovim/lua/my/plugins
|
@ -44,11 +44,11 @@ function M.on_attach(client, bufnr)
|
|||
|
||||
if client.supports_method("textDocument/formatting") then
|
||||
nmap("<leader>F", format, "[F]ormat")
|
||||
-- vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
-- group = vim.api.nvim_create_augroup("LspFormatting", { clear = false }),
|
||||
-- buffer = bufnr,
|
||||
-- callback = format,
|
||||
-- })
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
group = vim.api.nvim_create_augroup("LspFormatting", { clear = false }),
|
||||
buffer = bufnr,
|
||||
callback = format,
|
||||
})
|
||||
end
|
||||
-- }}}
|
||||
-- {{{ Go to declaration / references / implementation
|
||||
|
@ -178,6 +178,7 @@ local servers = {
|
|||
jsonls = {},
|
||||
dhall_lsp_server = {},
|
||||
typst_lsp = {},
|
||||
elmls = {},
|
||||
-- {{{ Inactive
|
||||
-- pylsp = {},
|
||||
-- pyright = {},
|
||||
|
|
|
@ -33,7 +33,7 @@ local M = {
|
|||
"vim",
|
||||
"yaml",
|
||||
"nix",
|
||||
"lua"
|
||||
"lua",
|
||||
},
|
||||
sync_install = false,
|
||||
--}}}
|
||||
|
@ -91,6 +91,13 @@ local M = {
|
|||
event = "BufReadPost",
|
||||
cond = env.vscode.not_active(),
|
||||
},
|
||||
{
|
||||
-- show context at top of file
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
event = "BufReadPost",
|
||||
cond = env.vscode.not_active(),
|
||||
opts = { enable = true },
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue