From c9ea68b224ab962bec0707bfb0e617fbc8f7e2d0 Mon Sep 17 00:00:00 2001 From: meannzen Date: Sat, 2 Aug 2025 03:55:44 -0400 Subject: [PATCH] work well --- init.lua | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 2194f947..fe8ca2d7 100644 --- a/init.lua +++ b/init.lua @@ -102,7 +102,7 @@ vim.g.have_nerd_font = false vim.o.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.o.relativenumber = true +vim.o.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.o.mouse = 'a' @@ -149,8 +149,15 @@ vim.o.splitbelow = true -- It is very similar to `vim.o` but offers an interface for conveniently interacting with tables. -- See `:help lua-options` -- and `:help lua-options-guide` -vim.o.list = true -vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +vim.o.list = false +vim.o.autoindent = true -- Disable auto-indentation +vim.o.smartindent = true -- Disable smart indentation +vim.o.cindent = true -- Disable C-style indentation +vim.o.expandtab = true -- Ensure tabs are converted to spaces +vim.o.shiftwidth = 3 -- No extra spaces for indentation +vim.o.tabstop = 3 -- One space per tab +vim.o.softtabstop = 3 +--vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } -- Preview substitutions live, as you type! vim.o.inccommand = 'split' @@ -553,7 +560,7 @@ require('lazy').setup({ -- Jump to the definition of the word under your cursor. -- This is where a variable was first declared, or where a function is defined, etc. -- To jump back, press . - map('grd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') + map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') -- WARN: This is not Goto Definition, this is Goto Declaration. -- For example, in C this would take you to the header. @@ -673,7 +680,7 @@ require('lazy').setup({ local servers = { clangd = {}, -- gopls = {}, - -- pyright = {}, + pyright = {}, rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- @@ -881,7 +888,6 @@ require('lazy').setup({ signature = { enabled = true }, }, }, - { -- You can easily change to a different colorscheme. -- Change the name of the colorscheme plugin below, and then -- change the command in the config to whatever the name of that colorscheme is. @@ -889,23 +895,27 @@ require('lazy').setup({ -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. 'folke/tokyonight.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. + transparent = true, config = function() ---@diagnostic disable-next-line: missing-fields require('tokyonight').setup { styles = { comments = { italic = false }, -- Disable italics in comments keywords = { italic = false }, + sidebars = 'dark', -- style for sidebars, see below + floats = 'dark', -- style for floating windows }, } -- 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 'tokyonight-storm' + vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) + vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) end, }, - -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { -- Collection of various small independent plugins/modules