From ea158b82d2bdf705a80e1ea062cf3f941c2f49cd Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 3 Dec 2025 17:30:57 +0800 Subject: Fixed indentation --- init.lua | 6 ++++++ lazy-lock.json | 5 ++--- lua/plugins/init.lua | 49 +------------------------------------------------ 3 files changed, 9 insertions(+), 51 deletions(-) diff --git a/init.lua b/init.lua index b684a22..88e8c01 100644 --- a/init.lua +++ b/init.lua @@ -87,6 +87,12 @@ vim.cmd("set shiftwidth=4") vim.cmd("set noexpandtab") vim.cmd("set smarttab") +-- Indentation Options +vim.opt.indentkeys:remove(":") +vim.opt.smartindent = true + + + -------------------------------------------------------- -- 🪶 Basic Keybindings -------------------------------------------------------- diff --git a/lazy-lock.json b/lazy-lock.json index 1d02c95..1dde1d1 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -18,15 +18,14 @@ "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, "nvim-autopairs": { "branch": "master", "commit": "7a2c97cccd60abc559344042fefb1d5a85b3e33b" }, "nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" }, - "nvim-lspconfig": { "branch": "master", "commit": "07f4e93de92e8d4ea7ab99602e3a8c9ac0fb778a" }, + "nvim-lspconfig": { "branch": "master", "commit": "effe4bf2e1afb881ea67291c648b68dd3dfc927a" }, "nvim-surround": { "branch": "main", "commit": "fcfa7e02323d57bfacc3a141f8a74498e1522064" }, - "nvim-tree.lua": { "branch": "master", "commit": "3fb91e18a727ecc0385637895ec397dea90be42a" }, + "nvim-tree.lua": { "branch": "master", "commit": "776a5cdfac948b490e06f1d1d22c4cb986e40699" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" }, "nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" }, "onedark.nvim": { "branch": "master", "commit": "213c23ae45a04797572242568d5d51937181792d" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, - "smear-cursor.nvim": { "branch": "main", "commit": "c85bdbb25db096fbcf616bc4e1357bd61fe2c199" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "tokyonight.nvim": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" }, "vim-grammarous": { "branch": "master", "commit": "db46357465ce587d5325e816235b5e92415f8c05" }, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index b31c559..0a6a0c4 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -20,8 +20,6 @@ return { 'windwp/nvim-autopairs', event = "InsertEnter", config = true - -- use opts = {} for passing setup options - -- this is equivalent to setup({}) function }, { @@ -29,9 +27,7 @@ return { version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features event = "VeryLazy", config = function() - require("nvim-surround").setup({ - -- Configuration here, or leave empty to use defaults - }) + require("nvim-surround").setup({}) end }, @@ -120,49 +116,6 @@ return { -- Dashboard { "nvimdev/dashboard-nvim", event = "VimEnter", dependencies = { "nvim-tree/nvim-web-devicons" }, config = require("config.dashboard") }, - - - - -- Cursor - "sphamba/smear-cursor.nvim", - opts = { - -- Smear cursor when switching buffers or windows. - smear_between_buffers = true, - - -- Smear cursor when moving within line or to neighbor lines. - -- Use `min_horizontal_distance_smear` and `min_vertical_distance_smear` for finer control - smear_between_neighbor_lines = true, - - -- Draw the smear in buffer space instead of screen space when scrolling - scroll_buffer_space = true, - - -- Set to `true` if your font supports legacy computing symbols (block unicode symbols). - -- Smears and particles will look a lot less blocky. - legacy_computing_symbols_support = false, - - -- Smear cursor in insert mode. - -- See also `vertical_bar_cursor_insert_mode` and `distance_stop_animating_vertical_bar`. - smear_insert_mode = true, - cursor_color = "#ff4000", - particles_enabled = true, - stiffness = 0.5, - trailing_stiffness = 0.2, - trailing_exponent = 5, - damping = 0.6, - gradient_exponent = 0, - gamma = 1, - never_draw_over_target = true, -- if you want to actually see under the cursor - hide_target_hack = true, -- same - particle_spread = 1, - particles_per_second = 500, - particles_per_length = 50, - particle_max_lifetime = 800, - particle_max_initial_velocity = 20, - particle_velocity_from_cursor = 0.5, - particle_damping = 0.15, - particle_gravity = -50, - min_distance_emit_particles = 0, - }, -- Themes "martinsione/darkplus.nvim", -- cgit v1.2.3