neovim conf based on kickstart.nvim
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

replace neotree with snacks explorer, remove noice, fix blink

+61 -98
+25 -31
init.lua
··· 86 86 vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') 87 87 88 88 -- Diagnostic Config & Keymaps 89 - -- See :help vim.diagnostic.Opts 90 - vim.diagnostic.config { 91 - update_in_insert = false, 92 - severity_sort = true, 93 - float = { border = 'rounded', max_width = 120, max_height = 20, focusable = true }, 94 - underline = { severity = { min = vim.diagnostic.severity.WARN } }, 95 - 96 - -- Can switch between these as you prefer 97 - virtual_text = true, -- Text shows up at the end of the line 98 - virtual_lines = { only_current_line = true }, -- Text shows up underneath the line, with virtual lines 99 - 100 - -- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d` 101 - jump = { float = true }, 102 - } 103 - 104 - vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) 89 + -- -- See :help vim.diagnostic.Opts 90 + -- vim.diagnostic.config { 91 + -- update_in_insert = false, 92 + -- severity_sort = true, 93 + -- float = { border = 'rounded', max_width = 120, max_height = 20, focusable = true }, 94 + -- underline = { severity = { min = vim.diagnostic.severity.WARN } }, 95 + -- 96 + -- -- Can switch between these as you prefer 97 + -- virtual_text = true, -- Text shows up at the end of the line 98 + -- virtual_lines = { only_current_line = true }, -- Text shows up underneath the line, with virtual lines 99 + -- 100 + -- -- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d` 101 + -- jump = { float = true }, 102 + -- } 103 + -- 104 + -- vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) 105 105 106 106 -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier 107 107 -- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which ··· 286 286 end, 287 287 desc = 'Notification History', 288 288 }, 289 + { '\\', function() Snacks.explorer() end, desc = 'snacks explorer reveal', silent = true }, 289 290 { '<leader>,', function() Snacks.picker.buffers() end, desc = 'Buffers' }, 290 291 { '<leader>:', function() Snacks.picker.command_history() end, desc = 'Command History' }, 291 292 { '<leader>n', function() Snacks.picker.notifications() end, desc = 'Notification History' }, 292 293 -- find 294 + { '<leader>ff', function() Snacks.picker.files() end, desc = 'Files' }, 293 295 { '<leader>fb', function() Snacks.picker.buffers() end, desc = 'Buffers' }, 294 296 { '<leader>fB', function() Snacks.picker.buffers { hidden = true, nofile = true } end, desc = 'Buffers (all)' }, 295 297 { '<leader>fg', function() Snacks.picker.git_files() end, desc = 'Find Files (git-files)' }, ··· 304 306 { '<leader>gI', function() Snacks.picker.gh_issue { state = 'all' } end, desc = 'GitHub Issues (all)' }, 305 307 { '<leader>gp', function() Snacks.lazygit() end, desc = 'Lazygit' }, 306 308 -- Grep 309 + { '<leader>sf', function() Snacks.picker.grep() end, desc = 'Grep' }, 307 310 { '<leader>sb', function() Snacks.picker.lines() end, desc = 'Buffer Lines' }, 308 311 { '<leader>sB', function() Snacks.picker.grep_buffers() end, desc = 'Grep Open Buffers' }, 309 312 { '<leader>sp', function() Snacks.picker.lazy() end, desc = 'Search for Plugin Spec' }, ··· 457 460 ty = {}, 458 461 rust_analyzer = {}, 459 462 bashls = {}, 460 - -- 461 - -- Some languages (like typescript) have entire language plugins that can be useful: 462 - -- https://github.com/pmizio/typescript-tools.nvim 463 - -- 464 - -- But for many setups, the LSP (`ts_ls`) will work just fine 465 - -- ts_ls = {}, 466 463 -- vtsls = {}, 467 464 astro = {}, 468 465 ··· 645 642 -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps 646 643 }, 647 644 648 - providers = { 649 - dadbod = { name = 'Dadbod', module = 'vim_dadbod_completion.blink' }, 650 - }, 651 - 652 645 appearance = { 653 646 -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font' 654 647 -- Adjusts spacing to ensure icons are aligned ··· 672 665 }, 673 666 sources = { 674 667 default = { 'lsp', 'path', 'snippets' }, 675 - }, 676 - 677 - per_filetype = { 678 - sql = { 'snippets', 'dadbod', 'buffer' }, 668 + per_filetype = { 669 + sql = { 'snippets', 'dadbod', 'buffer' }, 670 + }, 671 + providers = { 672 + dadbod = { name = 'Dadbod', module = 'vim_dadbod_completion.blink' }, 673 + }, 679 674 }, 680 675 681 676 snippets = { preset = 'mini_snippets' }, ··· 887 882 require 'kickstart.plugins.debug', 888 883 require 'kickstart.plugins.lint', 889 884 require 'kickstart.plugins.autopairs', 890 - require 'kickstart.plugins.neo-tree', 891 885 require 'kickstart.plugins.gitsigns', -- adds gitsigns recommended keymaps 892 886 893 887 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
+15 -1
lua/custom/plugins/init.lua
··· 75 75 }, 76 76 }, 77 77 }, 78 - 79 78 { 80 79 'MagicDuck/grug-far.nvim', 81 80 opts = { headerMaxWidth = 80 }, ··· 96 95 mode = { 'n', 'x' }, 97 96 desc = 'Search and Replace', 98 97 }, 98 + }, 99 + }, 100 + { 101 + 'mistweaverco/kulala.nvim', 102 + keys = { 103 + { '<leader>Rs', desc = 'Send request' }, 104 + { '<leader>Ra', desc = 'Send all requests' }, 105 + { '<leader>Rb', desc = 'Open scratchpad' }, 106 + }, 107 + ft = { 'http', 'rest' }, 108 + opts = { 109 + global_keymaps = false, 110 + global_keymaps_prefix = '<leader>R', 111 + kulala_keymaps_prefix = '', 112 + vscode_rest_client_environmentvars = false, 99 113 }, 100 114 }, 101 115 }
+7 -1
lua/custom/plugins/lang.lua
··· 144 144 lazy = true, 145 145 ft = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact' }, 146 146 dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' }, 147 - opts = {}, 147 + opts = { 148 + settings = { 149 + separate_diagnostic_server = true, 150 + publish_diagnostic_on = 'insert_leave', 151 + tsserver_max_memory = 8192, 152 + }, 153 + }, 148 154 }, 149 155 }
-50
lua/custom/plugins/ui.lua
··· 84 84 }, 85 85 }, 86 86 { 87 - 'folke/noice.nvim', 88 - event = 'VeryLazy', 89 - opts = { 90 - lsp = { 91 - override = { 92 - ['vim.lsp.util.convert_input_to_markdown_lines'] = true, 93 - ['vim.lsp.util.stylize_markdown'] = true, 94 - ['cmp.entry.get_documentation'] = true, 95 - }, 96 - }, 97 - routes = { 98 - { 99 - filter = { 100 - event = 'msg_show', 101 - any = { 102 - { find = '%d+L, %d+B' }, 103 - { find = '; after #%d+' }, 104 - { find = '; before #%d+' }, 105 - }, 106 - }, 107 - view = 'mini', 108 - }, 109 - }, 110 - presets = { 111 - bottom_search = true, 112 - command_palette = true, 113 - long_message_to_split = true, 114 - }, 115 - }, 116 - -- stylua: ignore 117 - keys = { 118 - { "<leader>sn", "", desc = "+noice"}, 119 - { "<S-Enter>", function() require("noice").redirect(vim.fn.getcmdline()) end, mode = "c", desc = "Redirect Cmdline" }, 120 - { "<leader>snl", function() require("noice").cmd("last") end, desc = "Noice Last Message" }, 121 - { "<leader>snh", function() require("noice").cmd("history") end, desc = "Noice History" }, 122 - { "<leader>sna", function() require("noice").cmd("all") end, desc = "Noice All" }, 123 - { "<leader>snd", function() require("noice").cmd("dismiss") end, desc = "Dismiss All" }, 124 - { "<leader>snt", function() require("noice").cmd("pick") end, desc = "Noice Picker (Telescope/FzfLua)" }, 125 - { "<c-f>", function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end, silent = true, expr = true, desc = "Scroll Forward", mode = {"i", "n", "s"} }, 126 - { "<c-b>", function() if not require("noice.lsp").scroll(-4) then return "<c-b>" end end, silent = true, expr = true, desc = "Scroll Backward", mode = {"i", "n", "s"}}, 127 - }, 128 - config = function(_, opts) 129 - -- HACK: noice shows messages from before it was enabled, 130 - -- but this is not ideal when Lazy is installing plugins, 131 - -- so clear the messages in this case. 132 - if vim.o.filetype == 'lazy' then vim.cmd [[messages clear]] end 133 - require('noice').setup(opts) 134 - end, 135 - }, 136 - { 137 87 'folke/edgy.nvim', 138 88 event = 'VeryLazy', 139 89 keys = {
-1
lua/kickstart/plugins/neo-tree.lua
··· 8 8 version = '*', 9 9 dependencies = { 10 10 'nvim-lua/plenary.nvim', 11 - 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended 12 11 'MunifTanjim/nui.nvim', 13 12 }, 14 13 lazy = false,
+14 -14
lua/matugen.lua
··· 3 3 function M.setup() 4 4 require('base16-colorscheme').setup { 5 5 -- Background tones 6 - base00 = '#171306', -- Default Background 7 - base01 = '#231f11', -- Lighter Background (status bars) 8 - base02 = '#2e2a1b', -- Selection Background 9 - base03 = '#9a906f', -- Comments, Invisibles 6 + base00 = '#10131c', -- Default Background 7 + base01 = '#1c1f29', -- Lighter Background (status bars) 8 + base02 = '#272a34', -- Selection Background 9 + base03 = '#8a90a5', -- Comments, Invisibles 10 10 -- Foreground tones 11 - base04 = '#d2c6a1', -- Dark Foreground (status bars) 12 - base05 = '#ebe2cb', -- Default Foreground 13 - base06 = '#ebe2cb', -- Light Foreground 14 - base07 = '#ebe2cb', -- Lightest Foreground 11 + base04 = '#c0c6dd', -- Dark Foreground (status bars) 12 + base05 = '#e0e2ef', -- Default Foreground 13 + base06 = '#e0e2ef', -- Light Foreground 14 + base07 = '#e0e2ef', -- Lightest Foreground 15 15 -- Accent colors 16 16 base08 = '#ffb4ab', -- Variables, XML Tags, Errors 17 - base09 = '#dcc66e', -- Integers, Constants 18 - base0A = '#ffb68f', -- Classes, Search Background 19 - base0B = '#ffb68f', -- Strings, Diff Inserted 20 - base0C = '#dcc66e', -- Regex, Escape Chars 21 - base0D = '#ffb68f', -- Functions, Methods 22 - base0E = '#ffb68f', -- Keywords, Storage 17 + base09 = '#b2c5ff', -- Integers, Constants 18 + base0A = '#86d1ea', -- Classes, Search Background 19 + base0B = '#59d5f8', -- Strings, Diff Inserted 20 + base0C = '#b2c5ff', -- Regex, Escape Chars 21 + base0D = '#59d5f8', -- Functions, Methods 22 + base0E = '#86d1ea', -- Keywords, Storage 23 23 base0F = '#93000a', -- Deprecated, Embedded Tags 24 24 } 25 25 end