1
Fork 0

Configured anyrun

This commit is contained in:
Matei Adriel 2023-08-19 22:13:34 +03:00
parent d0073fbee4
commit c86e6c6d5e
No known key found for this signature in database
9 changed files with 209 additions and 53 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -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 = {},

View file

@ -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