Tidy neovim configuration
* Remove some unused plugins and packages. * e.g. floaterm, projectionist, vim-wiki, vim-easy-align, vim-surround, visual-star-search, vim-rhubarb * Replace none-ls with conform.nvim and nvim-lint. * Replace lualine.nvim with mini-statusline. * Add neodev. * Simplify cmp completion sources.
This commit is contained in:
parent
94581a9c7f
commit
3afe1bd12b
16 changed files with 184 additions and 193 deletions
|
@ -8,6 +8,10 @@ catppuccin.setup {
|
|||
integrations = {
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
mini = {
|
||||
enabled = true,
|
||||
indentscope_color = "",
|
||||
},
|
||||
native_lsp = {
|
||||
enabled = true,
|
||||
},
|
||||
|
|
|
@ -26,13 +26,9 @@ cmp.setup {
|
|||
},
|
||||
|
||||
sources = {
|
||||
{ name = "nvim_lsp_signature_help" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "nvim_lua" },
|
||||
{ name = "cmp_tabnine" },
|
||||
{ name = "path" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer", keyword_length = 5, max_item_count = 5 },
|
||||
},
|
||||
|
||||
sorting = {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
-- Based on https://github.com/ALT-F4-LLC/thealtf4stream.nvim/blob/main/lua/TheAltF4Stream/floaterm.lua.
|
||||
|
||||
local nmap = require "opdavies.keymap".nmap
|
||||
|
||||
nmap { "<leader>ld", "<cmd>FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazydocker<cr>" }
|
||||
nmap { "<leader>lg", "<cmd>FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazygit<cr>" }
|
||||
nmap { "<leader>nn", "<cmd>FloatermNew --autoclose=2 --height=0.75 --width=0.75 nnn -Hde<cr>" }
|
||||
nmap { "<leader>tt", "<cmd>FloatermNew --autoclose=2 --height=0.9 --width=0.9 zsh<cr>" }
|
|
@ -1,9 +0,0 @@
|
|||
require("lualine").setup {
|
||||
options = {
|
||||
component_separators = { left = "", right = "" },
|
||||
extensions = { "fzf", "quickfix" },
|
||||
icons_enabled = false,
|
||||
section_separators = { left = "", right = "" },
|
||||
theme = "catppuccin",
|
||||
},
|
||||
}
|
22
after/plugin/mini.lua
Normal file
22
after/plugin/mini.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
require("mini.ai").setup {}
|
||||
|
||||
require("mini.align").setup {}
|
||||
|
||||
require("mini.bracketed").setup {}
|
||||
|
||||
require("mini.hipatterns").setup {
|
||||
highlighters = {
|
||||
note = { pattern = "%f[%w]()NOTE()%f[%W]", group = "MiniHipatternsNote" },
|
||||
todo = { pattern = "%f[%w]()TODO()%f[%W]", group = "MiniHipatternsTodo" },
|
||||
},
|
||||
}
|
||||
|
||||
require("mini.move").setup {}
|
||||
|
||||
require("mini.operators").setup {}
|
||||
|
||||
require("mini.splitjoin").setup {}
|
||||
|
||||
require("mini.statusline").setup {}
|
||||
|
||||
require("mini.surround").setup {}
|
|
@ -1,58 +0,0 @@
|
|||
local heuristics = {
|
||||
["composer.json"] = {
|
||||
["src/*.php"] = {
|
||||
type = "source",
|
||||
alternate = "tests/{}Test.php",
|
||||
},
|
||||
|
||||
["src/Controller/*.php"] = {
|
||||
type = "controller",
|
||||
},
|
||||
|
||||
["src/Model/*.php"] = {
|
||||
type = "model",
|
||||
},
|
||||
|
||||
["src/Service/*.php"] = {
|
||||
type = "service",
|
||||
},
|
||||
|
||||
["tests/*Test.php"] = {
|
||||
type = "test",
|
||||
alternate = "src/{}.php",
|
||||
},
|
||||
},
|
||||
|
||||
["fractal.config.js"] = {
|
||||
["*.config.yml"] = {
|
||||
alternate = "{dirname}/{basename}.twig",
|
||||
},
|
||||
|
||||
["*.twig"] = {
|
||||
alternate = "{dirname}/{basename}.config.yml",
|
||||
},
|
||||
},
|
||||
|
||||
["package.json"] = {
|
||||
["src/*.ts"] = {
|
||||
type = "source",
|
||||
alternate = "tests/{}.test.ts",
|
||||
},
|
||||
|
||||
["src/*.service.ts"] = {
|
||||
type = "source",
|
||||
alternate = "tests/{}.test.ts",
|
||||
},
|
||||
|
||||
["tests/*.test.ts"] = {
|
||||
type = "test",
|
||||
alternate = "src/{}.ts",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
vim.g.projectionist_heuristics = heuristics
|
||||
|
||||
local nmap = require("opdavies.keymap").nmap
|
||||
|
||||
nmap { "<leader>aa", "<cmd>A<cr>" }
|
|
@ -1,7 +0,0 @@
|
|||
vim.g.vimwiki_list = {
|
||||
{
|
||||
ext = 'md',
|
||||
path = '~/Documents/Google Drive/vim-wiki',
|
||||
syntax = 'markdown',
|
||||
}
|
||||
}
|
Reference in a new issue