From f9230250d939b428723160bdf889efb74a513ba3 Mon Sep 17 00:00:00 2001 From: Brian Henderson Date: Thu, 29 May 2025 11:55:54 +0200 Subject: [PATCH] enable plugins and add customizations --- init.lua | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index b98ffc61..395d0111 100644 --- a/init.lua +++ b/init.lua @@ -698,6 +698,26 @@ require('lazy').setup({ }, }, }, + + -- my customizations + clangd = {}, + gopls = {}, + pyright = { + settings = { + pyright = { + -- Using Ruff's import organizer + disableOrganizeImports = true, + }, + python = { + analysis = { + -- Ignore all files for analysis to exclusively use Ruff for linting + ignore = { '*' }, + }, + }, + }, + }, + ts_ls = {}, + ruff = {}, } -- Ensure the servers and tools above are installed @@ -716,6 +736,13 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + + -- my customizations + 'markdownlint', + 'mypy', + 'jq', + 'prettier', + 'codelldb', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } @@ -773,6 +800,12 @@ require('lazy').setup({ -- -- You can use 'stop_after_first' to run the first available formatter from the list -- javascript = { "prettierd", "prettier", stop_after_first = true }, + + -- my customizations + json = { 'jq' }, + sarif = { 'jq' }, + python = { 'ruff' }, + html = { 'prettier' }, }, }, }, @@ -973,18 +1006,18 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', + require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope!