Added more stuff

This commit is contained in:
Zain Siddavatam 2026-02-10 16:02:52 +05:30
parent 39ae20d3ae
commit 940e44c5a3
3 changed files with 31 additions and 13 deletions

View File

@ -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', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- TIP: Disable arrow keys in normal mode
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> 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 = {

View File

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

View File

@ -15,6 +15,10 @@ return {
},
opts = {
filesystem = {
filtered_items = {
visible = true,
hide_gitignored = false,
},
window = {
mappings = {
['\\'] = 'close_window',