├── lua ├── user │ ├── bfs │ │ ├── utils.lua │ │ ├── config.lua │ │ ├── keymaps.lua │ │ └── init.lua │ ├── telescope-file-browser.lua │ ├── scope.lua │ ├── feline.lua │ ├── autorunner.lua │ ├── gist.lua │ ├── lsp │ │ ├── settings │ │ │ ├── ruff.lua │ │ │ ├── yamlls.lua │ │ │ ├── zk.lua │ │ │ ├── clangd.lua │ │ │ ├── solang.lua │ │ │ ├── solc.lua │ │ │ ├── pyright.lua │ │ │ ├── emmet_ls.lua │ │ │ ├── jsonls.lua │ │ │ ├── tsserver.lua │ │ │ ├── sumneko_lua.lua │ │ │ └── rust.lua │ │ ├── init.lua │ │ ├── null-ls.lua │ │ ├── lsp-signature.lua │ │ ├── mason.lua │ │ └── handlers.lua │ ├── vim-slash.lua │ ├── quickscope.lua │ ├── fold_preview.lua │ ├── aerial.lua │ ├── fidget.lua │ ├── impatient.lua │ ├── matchup.lua │ ├── git-blame.lua │ ├── bracketed.lua │ ├── cutlass.lua │ ├── harpoon.lua │ ├── fold.lua │ ├── numb.lua │ ├── bqf.lua │ ├── conflict-marker.lua │ ├── Navigator.lua │ ├── tabnine.lua │ ├── crates.lua │ ├── lab.lua │ ├── terminal.lua │ ├── tree-climber.lua │ ├── gitlinker.lua │ ├── colorizer.lua │ ├── bookmark.lua │ ├── jabs.lua │ ├── copilot.lua │ ├── navic.lua │ ├── autopairs.lua │ ├── nvim_transparent.lua │ ├── telescope │ │ └── user_themes.lua │ ├── colorscheme.lua │ ├── tabout.lua │ ├── auto-session.lua │ ├── zen-mode.lua │ ├── session-manager.lua │ ├── notify.lua │ ├── comment.lua │ ├── ts-context.lua │ ├── renamer.lua │ ├── nvim-webdev-icons.lua │ ├── lsp-inlayhints.lua │ ├── browse.lua │ ├── illuminate.lua │ ├── hop.lua │ ├── hot-reload.lua │ ├── stickybuf.lua │ ├── gitsigns.lua │ ├── inlay-hints.lua │ ├── neoscroll.lua │ ├── project.lua │ ├── cybu.lua │ ├── jaq.lua │ ├── registers.lua │ ├── dial.lua │ ├── lir.lua │ ├── alpha.lua │ ├── surround.lua │ ├── indentline.lua │ ├── symbol-outline.lua │ ├── true-zen.lua │ ├── sniprun.lua │ ├── functions.lua │ ├── dap.lua │ ├── todo-comments.lua │ ├── spectre.lua │ ├── autocommands.lua │ ├── dressing.lua │ ├── options.lua │ ├── gps.lua │ ├── treesitter.lua │ ├── winbar.lua │ ├── icons.lua │ ├── keymaps.lua │ ├── toggleterm.lua │ ├── bufferline.lua │ └── telescope.lua └── split.lua ├── ftplugin ├── dosini.lua ├── python.lua ├── markdown.lua ├── solidity.lua ├── lspinfo.lua ├── c.lua ├── go.lua ├── rust.lua └── toml.lua ├── tags ├── ftdetect ├── mo.lua ├── sol.lua ├── waybar.lua └── font.lua ├── spell ├── en.utf-8.add.spl └── en.utf-8.add ├── after ├── file.lua └── syntax │ └── markdown.vim ├── .stylua.toml ├── .gitignore ├── krs-notes.md ├── init.lua ├── install_neovim.sh ├── snapshots └── july-24 └── README.md /lua/user/bfs/utils.lua: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lua/user/telescope-file-browser.lua: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lua/user/scope.lua: -------------------------------------------------------------------------------- 1 | require("scope").setup() 2 | -------------------------------------------------------------------------------- /ftplugin/dosini.lua: -------------------------------------------------------------------------------- 1 | vim.bo.commentstring="#%s" 2 | -------------------------------------------------------------------------------- /ftplugin/python.lua: -------------------------------------------------------------------------------- 1 | vim.opt.foldmethod = "indent" 2 | -------------------------------------------------------------------------------- /lua/user/feline.lua: -------------------------------------------------------------------------------- 1 | require("feline").setup() 2 | -------------------------------------------------------------------------------- /lua/user/autorunner.lua: -------------------------------------------------------------------------------- 1 | require('autorunner').setup() 2 | -------------------------------------------------------------------------------- /tags: -------------------------------------------------------------------------------- 1 | !_TAG_PROGRAM_VERSION 5.9.0 /p5.9.20210905.0/ 2 | -------------------------------------------------------------------------------- /ftplugin/markdown.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[setlocal conceallevel=2]] 2 | -------------------------------------------------------------------------------- /lua/user/gist.lua: -------------------------------------------------------------------------------- 1 | vim.g.gist_open_browser_after_post = 1 2 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/ruff.lua: -------------------------------------------------------------------------------- 1 | return { 2 | args = {} 3 | } 4 | -------------------------------------------------------------------------------- /lua/user/vim-slash.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[noremap (slash-after) zz]] 2 | -------------------------------------------------------------------------------- /lua/user/quickscope.lua: -------------------------------------------------------------------------------- 1 | vim.g.qs_highlight_on_keys = { "f", "F", "t", "T" } 2 | -------------------------------------------------------------------------------- /ftdetect/mo.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[ 2 | au BufRead,BufNewFile *.mo set filetype=motoko 3 | ]] 4 | -------------------------------------------------------------------------------- /lua/user/fold_preview.lua: -------------------------------------------------------------------------------- 1 | require("fold-preview").setup({ 2 | border = "rounded" 3 | }) 4 | -------------------------------------------------------------------------------- /ftdetect/sol.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[ 2 | au BufRead,BufNewFile tsconfig.json set filetype=jsonc 3 | ]] 4 | -------------------------------------------------------------------------------- /ftplugin/solidity.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[setlocal shiftwidth=4]] 2 | vim.cmd [[setlocal tabstop=4]] 3 | -------------------------------------------------------------------------------- /spell/en.utf-8.add.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krshrimali/nvim/master/spell/en.utf-8.add.spl -------------------------------------------------------------------------------- /ftplugin/lspinfo.lua: -------------------------------------------------------------------------------- 1 | vim.api.nvim_win_set_config(vim.api.nvim_get_current_win(), { border = "rounded" }) 2 | -------------------------------------------------------------------------------- /after/file.lua: -------------------------------------------------------------------------------- 1 | vim.cmd[[ 2 | command! -count -nargs=* ToggleTerm lua toggleterm_wrap(, ) 3 | ]] 4 | -------------------------------------------------------------------------------- /ftdetect/waybar.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[ 2 | au BufRead,BufNewFile $HOME/.config/waybar/config set filetype=jsonc 3 | ]] 4 | -------------------------------------------------------------------------------- /ftdetect/font.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[ 2 | au BufRead,BufNewFile $HOME/.config/fontconfig/fonts.conf set filetype=xml 3 | ]] 4 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/yamlls.lua: -------------------------------------------------------------------------------- 1 | 2 | return { 3 | yaml = { 4 | schemaStore = { 5 | enable = true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /lua/user/aerial.lua: -------------------------------------------------------------------------------- 1 | local status_ok, aerial = pcall(require, "aerial") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | aerial.setup() 7 | -------------------------------------------------------------------------------- /lua/user/fidget.lua: -------------------------------------------------------------------------------- 1 | local status_ok, fidget = pcall(require, "fidget") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | fidget.setup() 7 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/zk.lua: -------------------------------------------------------------------------------- 1 | local util = require "lspconfig.util" 2 | 3 | return { 4 | root_dir = util.root_pattern { ".git", ".zk" }, 5 | } 6 | -------------------------------------------------------------------------------- /lua/user/impatient.lua: -------------------------------------------------------------------------------- 1 | local status_ok, impatient = pcall(require, "impatient") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | impatient.enable_profile() 7 | -------------------------------------------------------------------------------- /lua/user/matchup.lua: -------------------------------------------------------------------------------- 1 | -- vim.g.matchup_enabled = 0 2 | vim.g.matchup_matchparen_offscreen = { method = nil } 3 | vim.g.matchup_matchpref = { html = { nolists = 1 } } 4 | -------------------------------------------------------------------------------- /.stylua.toml: -------------------------------------------------------------------------------- 1 | column_width = 120 2 | line_endings = "Unix" 3 | indent_type = "Spaces" 4 | indent_width = 2 5 | quote_style = "AutoPreferDouble" 6 | no_call_parentheses = true 7 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/clangd.lua: -------------------------------------------------------------------------------- 1 | return { 2 | cmd = { "clangd", "--inlay-hints" }, 3 | filetypes = { 4 | "cpp", 5 | "c", 6 | "hpp", 7 | "h", 8 | }, 9 | } 10 | -------------------------------------------------------------------------------- /lua/user/git-blame.lua: -------------------------------------------------------------------------------- 1 | vim.g.gitblame_enabled = 0 2 | vim.g.gitblame_message_template = "" 3 | vim.g.gitblame_highlight_group = "LineNr" 4 | vim.g.gitblame_date_format = '%r' 5 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/solang.lua: -------------------------------------------------------------------------------- 1 | -- targets can be one of ewasm, generic, sabre, solana, substrate 2 | return { 3 | cmd = { "solang", "--language-server", "--target", "ewasm", "--importpath", "node_modules/" }, 4 | } 5 | -------------------------------------------------------------------------------- /lua/user/bracketed.lua: -------------------------------------------------------------------------------- 1 | -- local status_ok, bracketed = pcall(require, "mini.bracketed") 2 | -- if not status_ok then 3 | -- return 4 | -- end 5 | 6 | -- bracketed.setup { 7 | -- } 8 | require("mini.bracketed").setup() 9 | -------------------------------------------------------------------------------- /lua/user/cutlass.lua: -------------------------------------------------------------------------------- 1 | local status_ok, cutlass = pcall(require, "cutlass") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | cutlass.setup { 7 | { 8 | cut_key = nil, 9 | override_del = nil, 10 | exclude = {}, 11 | }, 12 | } 13 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/solc.lua: -------------------------------------------------------------------------------- 1 | -- targets can be one of ewasm, generic, sabre, solana, substrate 2 | return { 3 | -- cmd = { "solc", "--lsp", "--import-path", "node_modules" }, 4 | cmd = { "solc", "--lsp", "--include-path", "../node_modules" }, 5 | } 6 | -------------------------------------------------------------------------------- /ftplugin/c.lua: -------------------------------------------------------------------------------- 1 | local notify_filter = vim.notify 2 | vim.notify = function(msg, ...) 3 | if msg:match "warning: multiple different client offset_encodings detected for buffer, this is not supported yet" then 4 | return 5 | end 6 | 7 | notify_filter(msg, ...) 8 | end 9 | -------------------------------------------------------------------------------- /lua/user/harpoon.lua: -------------------------------------------------------------------------------- 1 | local status_ok, telescope = pcall(require, "telescope") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | local h_status_ok, harpoon = pcall(require, "harpoon") 7 | if not h_status_ok then 8 | return 9 | end 10 | telescope.load_extension "harpoon" 11 | -------------------------------------------------------------------------------- /lua/user/fold.lua: -------------------------------------------------------------------------------- 1 | require('pretty-fold').setup { 2 | keep_indentation = true, 3 | fill_char = '•', 4 | sections = { 5 | left = { 6 | '+', function() return string.rep('-', vim.v.foldlevel) end, 7 | ' ', 'number_of_folded_lines', ':', 'content', 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /lua/user/numb.lua: -------------------------------------------------------------------------------- 1 | local status_ok, numb = pcall(require, "numb") 2 | if not status_ok then 3 | return 4 | end 5 | numb.setup({ 6 | show_numbers = true, -- Enable 'number' for the window while peeking 7 | show_cursorline = true, -- Enable 'cursorline' for the window while peeking 8 | centered_peeking = true, 9 | }) 10 | -------------------------------------------------------------------------------- /lua/user/bqf.lua: -------------------------------------------------------------------------------- 1 | local status_ok, bqf = pcall(require, "bqf") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | bqf.setup( 7 | { 8 | auto_enable = true, 9 | auto_resize_height = true, 10 | border_chars = {'┃', '┃', '━', '━', '┏', '┓', '┗', '┛', '█'}, 11 | preview = { 12 | auto_preview = true, 13 | wrap = true, 14 | } 15 | } 16 | ) 17 | -------------------------------------------------------------------------------- /lua/user/conflict-marker.lua: -------------------------------------------------------------------------------- 1 | -- Default values 2 | -- vim.g.conflict_marker_begin = "^<<<<<<< \\@=" 3 | -- vim.g.conflict_marker_common_ancestors = "^||||||| .*$" 4 | -- vim.g.conflict_marker_separator = "^=======$" 5 | -- vim.g.conflict_marker_end = "^>>>>>>> \\@=" 6 | vim.g.conflict_marker_enable_highlight = 0 7 | -- https://github.com/rhysd/conflict-marker.vim finish this up at some point 8 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/pyright.lua: -------------------------------------------------------------------------------- 1 | return { 2 | -- cmd = { "pyright" }, 3 | settings = { 4 | python = { 5 | analysis = { 6 | typeCheckingMode = "basic", 7 | diagnosticMode = "openFilesOnly", 8 | inlayHints = { 9 | variableTypes = true, 10 | functionReturnTypes = true, 11 | }, 12 | }, 13 | }, 14 | }, 15 | } 16 | -------------------------------------------------------------------------------- /lua/user/Navigator.lua: -------------------------------------------------------------------------------- 1 | require("Navigator").setup() 2 | 3 | -- vim.keymap.set({'n', 'v', 'o'}, '', require('tree-climber').goto_parent, keyopts) 4 | vim.keymap.set('n', "", require('Navigator').left()) 5 | vim.keymap.set('n', "", require('Navigator').right()) 6 | vim.keymap.set('n', "", require('Navigator').up()) 7 | vim.keymap.set('n', "", require('Navigator').down()) 8 | vim.keymap.set('n', "", require('Navigator').previous()) 9 | -------------------------------------------------------------------------------- /lua/user/tabnine.lua: -------------------------------------------------------------------------------- 1 | -- M = {} 2 | 3 | local status_ok, tabnine = pcall(require, "cmp_tabnine.config") 4 | if not status_ok then 5 | return 6 | end 7 | 8 | tabnine:setup { 9 | max_lines = 1000, 10 | max_num_results = 20, 11 | sort = true, 12 | run_on_every_keystroke = true, 13 | snippet_placeholder = "..", 14 | ignored_file_types = { -- default is not to ignore 15 | -- uncomment to ignore in lua: 16 | -- lua = true 17 | }, 18 | } 19 | 20 | -- return M 21 | -------------------------------------------------------------------------------- /lua/user/crates.lua: -------------------------------------------------------------------------------- 1 | local status_ok, crates = pcall(require, "crates") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | crates.setup { 7 | popup = { 8 | -- autofocus = true, 9 | style = "minimal", 10 | border = "rounded", 11 | show_version_date = false, 12 | show_dependency_version = true, 13 | max_height = 30, 14 | min_width = 20, 15 | padding = 1, 16 | }, 17 | null_ls = { 18 | enabled = true, 19 | name = "crates.nvim", 20 | }, 21 | } 22 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/emmet_ls.lua: -------------------------------------------------------------------------------- 1 | -- https://github.com/pedro757/emmet 2 | -- npm i -g ls_emmet 3 | return { 4 | cmd = { "ls_emmet", "--stdio" }, 5 | filetypes = { 6 | "html", 7 | "css", 8 | "scss", 9 | "javascript", 10 | "javascriptreact", 11 | "typescript", 12 | "typescriptreact", 13 | "haml", 14 | "xml", 15 | "xsl", 16 | "pug", 17 | "slim", 18 | "sass", 19 | "stylus", 20 | "less", 21 | "sss", 22 | "hbs", 23 | "handlebars", 24 | }, 25 | } 26 | -------------------------------------------------------------------------------- /lua/user/lab.lua: -------------------------------------------------------------------------------- 1 | local status_ok, lab = pcall(require, "lab") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | lab.setup { 7 | code_runner = { 8 | enabled = true, 9 | }, 10 | quick_data = { 11 | enabled = false, 12 | }, 13 | } 14 | 15 | local opts = { noremap = true, silent = true } 16 | 17 | local keymap = vim.api.nvim_set_keymap 18 | 19 | keymap("n", "", ":Lab code run", opts) 20 | keymap("n", "", ":Lab code stop", opts) 21 | keymap("n", "", ":Lab code panel", opts) 22 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/jsonls.lua: -------------------------------------------------------------------------------- 1 | local status_ok, schemastore = pcall(require, "schemastore") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | return { 7 | init_options = { 8 | provideFormatter = false, 9 | }, 10 | settings = { 11 | json = { 12 | schemas = schemastore.json.schemas(), 13 | }, 14 | }, 15 | setup = { 16 | commands = { 17 | -- Format = { 18 | -- function() 19 | -- vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 }) 20 | -- end, 21 | -- }, 22 | }, 23 | }, 24 | } 25 | -------------------------------------------------------------------------------- /lua/user/lsp/settings/tsserver.lua: -------------------------------------------------------------------------------- 1 | return { 2 | settings = { 3 | typescript = { 4 | inlayHints = { 5 | includeInlayEnumMemberValueHints = true, 6 | includeInlayFunctionLikeReturnTypeHints = true, 7 | includeInlayFunctionParameterTypeHints = true, 8 | includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all'; 9 | includeInlayParameterNameHintsWhenArgumentMatchesName = true, 10 | includeInlayPropertyDeclarationTypeHints = true, 11 | includeInlayVariableTypeHints = true, 12 | }, 13 | }, 14 | }, 15 | } 16 | -------------------------------------------------------------------------------- /lua/user/terminal.lua: -------------------------------------------------------------------------------- 1 | -- Copied from LunarVim's code 2 | M.lazygit_toggle = function() 3 | local Terminal = require("toggleterm.terminal").Terminal 4 | local lazygit = Terminal:new { 5 | cmd = "lazygit", 6 | hidden = true, 7 | direction = "float", 8 | start_in_insert = true, 9 | float_opts = { 10 | border = "none", 11 | width = 100000, 12 | height = 100000, 13 | }, 14 | on_open = function(_) 15 | vim.cmd "startinsert!" 16 | end, 17 | on_close = function(_) end, 18 | count = 99, 19 | } 20 | lazygit:toggle() 21 | end 22 | 23 | return M 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Lua sources 2 | luac.out 3 | 4 | # luarocks build files 5 | *.src.rock 6 | *.zip 7 | *.tar.gz 8 | 9 | # Object files 10 | *.o 11 | *.os 12 | *.ko 13 | *.obj 14 | *.elf 15 | 16 | # Precompiled Headers 17 | *.gch 18 | *.pch 19 | 20 | # Libraries 21 | *.lib 22 | *.a 23 | *.la 24 | *.lo 25 | *.def 26 | *.exp 27 | 28 | # Shared objects (inc. Windows DLLs) 29 | *.dll 30 | *.so 31 | *.so.* 32 | *.dylib 33 | 34 | # Executables 35 | *.exe 36 | *.out 37 | *.app 38 | *.i*86 39 | *.x86_64 40 | *.hex 41 | 42 | 43 | plugin/packer_compiled.lua 44 | java-debug/ 45 | vscode-java-test/ 46 | 47 | .luarc.json 48 | -------------------------------------------------------------------------------- /lua/user/bfs/config.lua: -------------------------------------------------------------------------------- 1 | M = {} 2 | 3 | local ui = vim.api.nvim_list_uis()[1] 4 | 5 | M.user_config = { 6 | width = 40, 7 | height = 10, 8 | style = "minimal", 9 | border = "rounded", 10 | -- anchor = "NW", 11 | -- TODO: find a good way to center in window later 12 | -- relative = "win", 13 | relative = "editor", 14 | row = (ui.height / 2) - (10 / 2), 15 | col = (ui.width / 2) - (40 / 2), 16 | } 17 | 18 | M.openOptions = { 19 | window = "b %s", 20 | vsplit = "vert sb %s", 21 | hsplit = "sb %s", 22 | } 23 | 24 | -- vim extend table 25 | -- vim.tbl_extend(M.config, M.openOptions) 26 | 27 | return M 28 | -------------------------------------------------------------------------------- /lua/user/tree-climber.lua: -------------------------------------------------------------------------------- 1 | local status_ok, tree_climber = pcall(require, "tree-climber") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | local keyopts = { noremap = true, silent = true } 7 | -- vim.keymap.set({'n', 'v', 'o'}, '', require('tree-climber').goto_parent, keyopts) 8 | -- vim.keymap.set({'n', 'v', 'o'}, '', require('tree-climber').goto_child, keyopts) 9 | -- vim.keymap.set({'n', 'v', 'o'}, '', tree_climber.goto_next, keyopts) 10 | -- vim.keymap.set({'n', 'v', 'o'}, '', tree_climber.goto_prev, keyopts) 11 | -- vim.keymap.set('n', '', tree_climber.swap_prev, keyopts) 12 | -- vim.keymap.set('n', '', tree_climber.swap_next, keyopts) 13 | -------------------------------------------------------------------------------- /lua/user/gitlinker.lua: -------------------------------------------------------------------------------- 1 | local status_ok, gitlinker = pcall(require, "gitlinker") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | gitlinker.setup({ 7 | opts = { 8 | callbacks = { 9 | ["git.comcast.com"] = require("gitlinker.hosts").get_github_type_url, 10 | }, 11 | -- remote = 'github', -- force the use of a specific remote 12 | -- adds current line nr in the url for normal mode 13 | add_current_line_on_normal_mode = true, 14 | -- callback for what to do with the url 15 | action_callback = require("gitlinker.actions").open_in_browser, 16 | -- print the url after performing the action 17 | print_url = false, 18 | -- mapping to call url generation 19 | mappings = "gy", 20 | }, 21 | }) 22 | -------------------------------------------------------------------------------- /lua/user/colorizer.lua: -------------------------------------------------------------------------------- 1 | local status_ok, colorizer = pcall(require, "colorizer") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | colorizer.setup({ 7 | filetypes = { "*" }, 8 | RGB = true, -- #RGB hex codes 9 | RRGGBB = true, -- #RRGGBB hex codes 10 | names = false, -- "Name" codes like Blue oe blue 11 | RRGGBBAA = true, -- #RRGGBBAA hex codes 12 | rgb_fn = true, -- CSS rgb() and rgba() functions 13 | hsl_fn = true, -- CSS hsl() and hsla() functions 14 | css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB 15 | css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn 16 | -- Available modes: foreground, background, virtualtext 17 | mode = "background", -- Set the display mode.) 18 | }) 19 | -------------------------------------------------------------------------------- /lua/user/bookmark.lua: -------------------------------------------------------------------------------- 1 | -- highlight BookmarkSign ctermbg=NONE ctermfg=160 2 | -- highlight BookmarkLine ctermbg=194 ctermfg=NONE 3 | local icons = require "user.icons" 4 | vim.g.bookmark_sign = icons.ui.BookMark 5 | vim.g.bookmark_annotation_sign = icons.ui.Comment 6 | vim.g.bookmark_no_default_key_mappings = 1 7 | vim.g.bookmark_auto_save = 0 8 | vim.g.bookmark_auto_close = 0 9 | vim.g.bookmark_manage_per_buffer = 0 10 | vim.g.bookmark_save_per_working_dir = 0 11 | -- vim.g.bookmark_highlight_lines = 1 12 | vim.g.bookmark_show_warning = 0 13 | vim.g.bookmark_center = 1 14 | vim.g.bookmark_location_list = 0 15 | vim.g.bookmark_disable_ctrlp = 1 16 | vim.g.bookmark_display_annotation = 0 17 | -- vim.g.bookmark_auto_save_file = '~/.config/lvim/bookmarks' 18 | -------------------------------------------------------------------------------- /krs-notes.md: -------------------------------------------------------------------------------- 1 | ## NeoVim shortcuts 2 | 3 | 1. Copy text within the matching bracket: `y i {` (without bracket) and `y a {` with brackets. 4 | 5 | ## Plugins to explore 6 | 7 | 1. [lspkind](https://github.com/onsails/lspkind.nvim) 8 | 2. [nvim-ufo](https://github.com/kevinhwang91/nvim-ufo) 9 | 3. [mind.nvim](https://github.com/phaazon/mind.nvim) 10 | 4. [markdown preview](https://github.com/iamcco/markdown-preview.nvim) 11 | 5. [portal neovim](https://github.com/cbochs/portal.nvim) 12 | 6. [telescope advanced git search](https://github.com/aaronhallaert/advanced-git-search.nvim) 13 | 7. [NeoComposer: Neovim plugin that simplifies macros, enhancing productivity with harmony](https://github.com/ecthelionvi/NeoComposer.nvim) 14 | 15 | ## Known issues 16 | 17 | 1. [Invalid indents for python](https://github.com/nvim-treesitter/nvim-treesitter/issues/1136) 18 | -------------------------------------------------------------------------------- /lua/user/jabs.lua: -------------------------------------------------------------------------------- 1 | local status_ok, jabs = pcall(require, "jabs") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | -- (Optional) easy way to get Neovim current size. 7 | -- local ui = vim.api.nvim_list_uis()[1] 8 | 9 | jabs.setup { 10 | position = "center", -- center, corner 11 | width = 50, 12 | height = 10, 13 | border = "rounded", -- none, single, double, rounded, solid, shadow, (or an array or chars) 14 | 15 | -- Options for preview window 16 | preview_position = "top", -- top, bottom, left, right 17 | preview = { 18 | width = 70, 19 | height = 20, 20 | border = "rounded", -- none, single, double, rounded, solid, shadow, (or an array or chars) 21 | }, 22 | 23 | -- the options below are ignored when position = 'center' 24 | -- col = ui.width, -- Window appears on the right 25 | -- row = ui.height/2, -- Window appears in the vertical middle 26 | } 27 | -------------------------------------------------------------------------------- /lua/user/copilot.lua: -------------------------------------------------------------------------------- 1 | -- For copilot.vim 2 | -- vim.g.copilot_filetypes = { 3 | -- ["*"] = false, 4 | -- } 5 | 6 | -- vim.cmd [[ 7 | -- imap