feat: install all this other bs

This commit is contained in:
nikolay 2025-01-04 20:07:43 +00:00
parent b2f5848886
commit 00b89d9c78
1 changed files with 30 additions and 4 deletions

View File

@ -525,8 +525,17 @@ require('lazy').setup({
-- clangd = {},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
terraformls = {},
biome = {},
marksman = {},
rust_analyzer = {},
ruby_lsp = {},
ts_ls = {},
ruff = {
path = { '/Users/nikolay/.local/bin/ruff' },
},
pyright = {},
zls = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
@ -603,7 +612,7 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true }
local disable_filetypes = { c = false, cpp = true }
local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never'
@ -621,7 +630,8 @@ require('lazy').setup({
-- python = { "isort", "black" },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },
javascript = { 'prettierd', 'prettier', stop_after_first = true },
html = { 'prettierd', 'prettier', stop_after_first = true },
},
},
},
@ -826,7 +836,23 @@ require('lazy').setup({
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'terraform', 'python' },
ensure_installed = {
'bash',
'c',
'diff',
'css',
'javascript',
'html',
'lua',
'luadoc',
--'markdown',
--'markdown_inline',
'query',
'vim',
'vimdoc',
'terraform',
'python',
},
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {