kitchen sink...
just gonna put the changes that I can remember making here: - replace blink with native completion (omnifunc) - remove some unneeded plugins - add a misc function for making sure complex bindings don't cause flickering - remove some stale snippets - remove folding (I don't find myself folding that often)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
local map_local = core.misc.map_local
|
||||
local map_local, lz = core.misc.map_local, core.misc.lz
|
||||
|
||||
-- sort #includes <> (very jank)
|
||||
-- TODO: rewrite in a semi-sane way
|
||||
map_local("n", "cri", "mz/^#include.*<.*>$<CR>ggVGN:sort<CR>`z<cmd>delm z<CR>:nohlsearch<Bar>:echo<CR>")
|
||||
map_local("n", "cri", lz "mz/^#include.*<.*>$<CR>ggVGN:sort<CR>`z<cmd>delm z<CR>:nohlsearch<Bar>:echo<CR>")
|
||||
|
@ -1 +1 @@
|
||||
core.misc.map("n", "q", "<cmd>q<CR>")
|
||||
core.misc.map_local("n", "q", "<cmd>q<CR>")
|
||||
|
@ -1,6 +1,3 @@
|
||||
-- FIXME: the following error is emmitted when starting up jdtls:
|
||||
-- ERROR No LSP client found that supports vscode.java.resolveMainClass
|
||||
|
||||
local map, auto = core.misc.map, core.misc.auto
|
||||
|
||||
local ok, jdtls = pcall(require, "jdtls")
|
||||
@ -73,10 +70,9 @@ local config = {
|
||||
|
||||
dap.adapters.java = nil -- remove any old java adapters
|
||||
jdtls.setup_dap({ hotcodereplace = "auto" })
|
||||
require("jdtls.dap").setup_dap_main_class_configs()
|
||||
end,
|
||||
|
||||
-- don"t print out status messages
|
||||
-- don't print out status messages
|
||||
handlers = {
|
||||
["language/status"] = function() end
|
||||
},
|
||||
|
@ -2,7 +2,7 @@ local map_local = core.misc.map_local
|
||||
|
||||
map_local("n", "h", "-", { noremap = false, remap = true }) -- Go up a directory
|
||||
map_local("n", "l", "<CR>", { noremap = false, remap = true }) -- Go down a directory / open a file
|
||||
map_local("n", ".", "gh", { noremap = false, remap = true }) -- Toggle hidden files
|
||||
map_local("n", "g.", "gh", { noremap = false, remap = true }) -- Toggle hidden files
|
||||
map_local("n", "P", "<C-w>z", { noremap = false, remap = true }) -- Close preview window
|
||||
|
||||
-- Close netrw only if it isn't the last window
|
||||
|
@ -1,9 +0,0 @@
|
||||
local map = core.misc.map
|
||||
|
||||
return {
|
||||
on_attach = function(_, bufnr)
|
||||
-- add some basedpyright specific mappings
|
||||
local opts = { buffer = bufnr }
|
||||
map("n", "cri", "<cmd>PyrightOrganizeImports<CR>", opts)
|
||||
end,
|
||||
}
|
@ -1,12 +1,4 @@
|
||||
local map = core.misc.map
|
||||
|
||||
return {
|
||||
on_attach = function(_, bufnr)
|
||||
-- add some clangd specific mappings
|
||||
local opts = { buffer = bufnr }
|
||||
map("n", "<leader>o", "<cmd>ClangdSwitchSourceHeader<CR>", opts)
|
||||
end,
|
||||
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--background-index",
|
||||
|
@ -11,14 +11,14 @@ return {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
checkThirdParty = true,
|
||||
checkThirdParty = "ApplyInMemory",
|
||||
library = {
|
||||
vim.env.VIMRUNTIME
|
||||
vim.env.VIMRUNTIME,
|
||||
"${3rd}/luv/library"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
root_markers = { ".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml",
|
||||
"stylua.toml", "selene.toml", "selene.yml", "README.md" }
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
if vim.fn.has("termguicolors") and not os.getenv("TERM") ~= "linux" then
|
||||
vim.cmd("colorscheme mellow")
|
||||
vim.cmd("colo mellow")
|
||||
else
|
||||
vim.cmd("colorscheme default")
|
||||
vim.cmd("colo default")
|
||||
end
|
||||
|
Reference in New Issue
Block a user