aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
authorNicholas Hall <root@ngha.ro>2026-04-29 20:42:44 -0500
committerNicholas Hall <root@ngha.ro>2026-04-29 20:42:44 -0500
commitb834788f7dc110e4a4f79b0356f1293d6d129b13 (patch)
treebef6e26d08963096e192292c8d597d7f3301e2ba /after
parent7041a218d5cdcb6131697078e4422deb457c6cf0 (diff)
downloadnvim-lazyvim.tar.xz
nvim-lazyvim.zip
Omarchy lazyvimlazyvim
Diffstat (limited to 'after')
-rw-r--r--after/plugin/colors.lua23
-rw-r--r--after/plugin/lsp.lua31
-rw-r--r--after/plugin/lualine.lua1
-rw-r--r--after/plugin/nvim-cmp.lua21
-rw-r--r--after/plugin/telescope.lua74
-rw-r--r--after/plugin/treesitter.lua41
6 files changed, 0 insertions, 191 deletions
diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua
deleted file mode 100644
index 2fc22d7..0000000
--- a/after/plugin/colors.lua
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- COLORS --
---
-
-vim.opt.termguicolors = true
-
-local rp = require('rose-pine')
-rp.setup({
- --- @usage 'auto'|'main'|'moon'|'dawn'
- variant = 'auto',
- disable_italics = true,
-})
-
-function SetColor(color)
- color = color or "rose-pine" -- have a default value
- vim.cmd.colorscheme(color)
-
- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
- vim.api.nvim_set_hl(0, "ColorColumn", { bg = "#330000" })
-end
-
-SetColor() -- run at startup
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua
deleted file mode 100644
index bf6a29d..0000000
--- a/after/plugin/lsp.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local lsp_zero = require('lsp-zero')
-
-lsp_zero.on_attach(function(client, bufnr)
- -- see :help lsp-zero-keybindings
- -- to learn the available actions
- lsp_zero.default_keymaps({buffer = bufnr})
-end)
-
-
-local lspconfig = require('lspconfig')
-lspconfig.gopls.setup{}
-lspconfig.terraformls.setup{}
-lspconfig.yamlls.setup {
- settings = {
- yaml = {
- kubernetes = "*.{yaml,yml}",
- ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*",
- ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}",
- ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}",
- ["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}",
- ["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}",
- ["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}",
- ["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}",
- ["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}",
- ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}",
- ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}",
- ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "*docker-compose*.{yml,yaml}",
- ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}",
- }
- }
-}
diff --git a/after/plugin/lualine.lua b/after/plugin/lualine.lua
deleted file mode 100644
index 90e6db2..0000000
--- a/after/plugin/lualine.lua
+++ /dev/null
@@ -1 +0,0 @@
-require('lualine').setup()
diff --git a/after/plugin/nvim-cmp.lua b/after/plugin/nvim-cmp.lua
deleted file mode 100644
index 6548b71..0000000
--- a/after/plugin/nvim-cmp.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local cmp = require('cmp')
--- using lsp-zero
-local cmp_action = require('lsp-zero').cmp_action()
-
-cmp.setup({
- mapping = cmp.mapping.preset.insert({
- -- `Enter` key to confirm completion
- ['<CR>'] = cmp.mapping.confirm({select = false}),
-
- -- Ctrl+Space to trigger completion menu
- ['<C-Space>'] = cmp.mapping.complete(),
-
- -- Navigate between snippet placeholder
- ['<C-f>'] = cmp_action.luasnip_jump_forward(),
- ['<C-b>'] = cmp_action.luasnip_jump_backward(),
-
- -- Scroll up and down in the completion documentation
- ['<C-u>'] = cmp.mapping.scroll_docs(-4),
- ['<C-d>'] = cmp.mapping.scroll_docs(4),
- })
-})
diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua
deleted file mode 100644
index 16187c6..0000000
--- a/after/plugin/telescope.lua
+++ /dev/null
@@ -1,74 +0,0 @@
-local builtin = require('telescope.builtin')
-local Job = require("plenary.job")
-
-local vks = function(mode, key, action, desc)
- vim.keymap.set(mode, key, action , { noremap = true, desc = desc })
-end
-
-local function search_emoji()
- builtin.symbols({ sources = {'emoji'} })
-end
-
-local function grep_string()
- builtin.grep_string({ search = "", only_sort_text = true })
-end
-
--- borrowed from ThePrimeagen/harpoon/utils.lua
-local function get_os_command_output(cmd, cwd)
- if type(cmd) ~= "table" then
- print("Harpoon: [get_os_command_output]: cmd has to be a table")
- return {}
- end
- local command = table.remove(cmd, 1)
- local stderr = {}
- local stdout, ret = Job
- :new({
- command = command,
- args = cmd,
- cwd = cwd,
- on_stderr = function(_, data)
- table.insert(stderr, data)
- end,
- })
- :sync()
- return stdout, ret, stderr
-end
-
-local function project_files()
- local _, ret, _ = get_os_command_output({
- 'git', 'rev-parse', '--is-inside-wirk-tree',
- })
- if ret == 0 then
- builtin.git_files({ prompt_title = 'Git Files', prompt_prefix = '>>' })
- else
- builtin.find_files()
- end
-end
-
--- direct commands
-vks('n', '<leader>b', builtin.buffers, 'Buffers')
-vks('n', '<leader>r', builtin.grep_string, 'References')
-vks('n', '<leader>p', project_files, 'Paths' )
--- project_files unifies git_files and find_files
--- vks('n', '<leader>sf', builtin.git_files, 'Git files')
--- vks('n', '<leader>sp', builtin.find_files, 'Paths' )
-
--- search submenu
-vks('n', '<leader>sc', builtin.commands, 'Commands')
-vks('n', '<leader>s:', builtin.command_history, 'Command history')
-vks('n', '<leader>sC', builtin.colorscheme, 'Colorchemes')
-vks('n', '<leader>ss', grep_string, 'String (like ag)') -- Emulate fzf's Ag:
-vks('n', '<leader>sb', builtin.buffers, 'Buffers')
-vks('n', '<leader>se', search_emoji, 'Emojis')
-vks('n', '<leader>sg', builtin.live_grep, 'Find/grep' )
-vks('n', '<leader>sh', builtin.help_tags, 'Help')
-vks('n', '<leader>sk', builtin.keymaps, 'Key mappings')
-vks('n', '<leader>so', builtin.oldfiles, 'Recent Opened files')
-vks('n', '<leader>sr', builtin.registers, 'Registers')
-vks('n', '<leader>sd', builtin.lsp_document_symbols, 'Symbols - document')
-vks('n', '<leader>sw', builtin.lsp_workspace_symbols, 'Symbols - workspace')
-vks('n', '<leader>st', builtin.tags, 'Tags')
-vks('n', '<leader>s?', builtin.resume, 'Resume previous search')
-
--- vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find, { desc = '[/] Fuzzily search in current buffer]' })
--- E5108: Error executing lua: ...r/start/telescope.nvim/lua/telescope/builtin/__files.lua:413: attempt to call method '_get_hl_from_capture' (a nil value)
diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua
deleted file mode 100644
index 8c13f8f..0000000
--- a/after/plugin/treesitter.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-require'nvim-treesitter.configs'.setup {
- -- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "ruby", "python", "yaml", "go", "terraform" },
-
- -- Install parsers synchronously (only applied to `ensure_installed`)
- sync_install = false,
-
- -- Automatically install missing parsers when entering buffer
- -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
- auto_install = true,
-
- -- List of parsers to ignore installing (or "all")
- -- ignore_install = { "javascript" },
-
- ---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
- -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
-
- highlight = {
- enable = true,
-
- -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
- -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
- -- the name of the parser)
- -- list of language that will be disabled
- disable = { "c", "rust" },
- -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
- disable = function(lang, buf)
- local max_filesize = 100 * 1024 -- 100 KB
- local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
- if ok and stats and stats.size > max_filesize then
- return true
- end
- end,
-
- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
- -- Using this option may slow down your editor, and you may see some duplicate highlights.
- -- Instead of true it can also be a list of languages
- additional_vim_regex_highlighting = false,
- },
-}