From 940e44c5a3bf036ffe147c0b438949165c38c911 Mon Sep 17 00:00:00 2001 From: Zain Siddavatam Date: Tue, 10 Feb 2026 16:02:52 +0530 Subject: [PATCH] Added more stuff --- init.lua | 39 ++++++++++++++++++++---------- lua/kickstart/plugins/lint.lua | 1 + lua/kickstart/plugins/neo-tree.lua | 4 +++ 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index 58953279..1de84153 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.o` @@ -121,7 +121,7 @@ end) -- Enable break indent vim.o.breakindent = true --- Save undo history +-- Save undo historyxml vim.o.undofile = true -- Case-insensitive searching UNLESS \C or one or more capital letters in the search term @@ -185,10 +185,10 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- TIP: Disable arrow keys in normal mode --- vim.keymap.set('n', '', 'echo "Use h to move!!"') --- vim.keymap.set('n', '', 'echo "Use l to move!!"') --- vim.keymap.set('n', '', 'echo "Use k to move!!"') --- vim.keymap.set('n', '', 'echo "Use j to move!!"') +vim.keymap.set('n', '', 'echo "Use h to move!!"') +vim.keymap.set('n', '', 'echo "Use l to move!!"') +vim.keymap.set('n', '', 'echo "Use k to move!!"') +vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows @@ -487,7 +487,19 @@ require('lazy').setup({ -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` { 'mason-org/mason.nvim', opts = {} }, 'mason-org/mason-lspconfig.nvim', - 'WhoIsSethDaniel/mason-tool-installer.nvim', + { + 'WhoIsSethDaniel/mason-tool-installer.nvim', + opts = { + ensure_installed = { + 'clangd', + 'lemminx', + 'pyright', + 'ruff-lsp', + 'checkmake', + 'make-language-server', + }, + }, + }, -- Useful status updates for LSP. { 'j-hui/fidget.nvim', opts = {} }, @@ -674,10 +686,10 @@ require('lazy').setup({ -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { - -- clangd = {}, + clangd = {}, -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + pyright = {}, + rust_analyzer = {}, -- ... 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: @@ -686,7 +698,7 @@ require('lazy').setup({ -- But for many setups, the LSP (`ts_ls`) will work just fine -- ts_ls = {}, -- - + serve_d = {}, lua_ls = { -- cmd = { ... }, -- filetypes = { ... }, @@ -771,6 +783,7 @@ require('lazy').setup({ end, formatters_by_ft = { lua = { 'stylua' }, + asm = { 'asmfmt' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- @@ -897,7 +910,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'retrobox' end, }, @@ -947,7 +960,7 @@ 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' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'xml', 'make' }, -- Autoinstall languages that are not installed auto_install = true, highlight = { diff --git a/lua/kickstart/plugins/lint.lua b/lua/kickstart/plugins/lint.lua index dec42f09..3821f874 100644 --- a/lua/kickstart/plugins/lint.lua +++ b/lua/kickstart/plugins/lint.lua @@ -7,6 +7,7 @@ return { local lint = require 'lint' lint.linters_by_ft = { markdown = { 'markdownlint' }, + make = { 'checkmake' }, } -- To allow other plugins to add linters to require('lint').linters_by_ft, diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index c7067891..3e7f9936 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -15,6 +15,10 @@ return { }, opts = { filesystem = { + filtered_items = { + visible = true, + hide_gitignored = false, + }, window = { mappings = { ['\\'] = 'close_window',