aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/after
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/nvim/after')
-rw-r--r--home/.config/nvim/after/ftplugin/gitcommit.lua3
-rw-r--r--home/.config/nvim/after/ftplugin/gitrebase.lua16
-rw-r--r--home/.config/nvim/after/ftplugin/mail.lua1
-rw-r--r--home/.config/nvim/after/ftplugin/markdown.lua1
-rw-r--r--home/.config/nvim/after/ftplugin/text.lua3
-rw-r--r--home/.config/nvim/after/lsp/clangd.lua57
-rw-r--r--home/.config/nvim/after/lsp/fortls.lua10
-rw-r--r--home/.config/nvim/after/lsp/lua_ls.lua9
8 files changed, 0 insertions, 100 deletions
diff --git a/home/.config/nvim/after/ftplugin/gitcommit.lua b/home/.config/nvim/after/ftplugin/gitcommit.lua
deleted file mode 100644
index e670035..0000000
--- a/home/.config/nvim/after/ftplugin/gitcommit.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-vim.wo.spell = true
-vim.b.undo_ftplugin = (vim.b.undo_ftplugin or "") .. "|setlocal spell<"
-vim.cmd([[match ErrorMsg /\%1l.\%>50v/]])
diff --git a/home/.config/nvim/after/ftplugin/gitrebase.lua b/home/.config/nvim/after/ftplugin/gitrebase.lua
deleted file mode 100644
index 1bfcd69..0000000
--- a/home/.config/nvim/after/ftplugin/gitrebase.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local function nvmap(l, r, desc)
- vim.keymap.set(
- { "n", "v" },
- l,
- ":" .. r .. "<CR>",
- { buffer = 0, desc = "[G]it rebase " .. desc }
- )
-end
-
-nvmap("gc", "Cycle", "[C]ycle")
-nvmap("gp", "Pick", "[P]ick")
-nvmap("ge", "Edit", "[E]dit")
-nvmap("gf", "Fixup", "[F]ixup")
-nvmap("gd", "Drop", "[D]rop")
-nvmap("gs", "Squash", "[S]quash")
-nvmap("gr", "Reword", "[R]eword")
diff --git a/home/.config/nvim/after/ftplugin/mail.lua b/home/.config/nvim/after/ftplugin/mail.lua
deleted file mode 100644
index 9fe1500..0000000
--- a/home/.config/nvim/after/ftplugin/mail.lua
+++ /dev/null
@@ -1 +0,0 @@
-vim.wo.spell = true
diff --git a/home/.config/nvim/after/ftplugin/markdown.lua b/home/.config/nvim/after/ftplugin/markdown.lua
deleted file mode 100644
index 9fe1500..0000000
--- a/home/.config/nvim/after/ftplugin/markdown.lua
+++ /dev/null
@@ -1 +0,0 @@
-vim.wo.spell = true
diff --git a/home/.config/nvim/after/ftplugin/text.lua b/home/.config/nvim/after/ftplugin/text.lua
deleted file mode 100644
index 2179c42..0000000
--- a/home/.config/nvim/after/ftplugin/text.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-vim.wo.spell = true
-vim.bo.formatoptions = vim.bo.formatoptions .. "t"
-vim.bo.commentstring = "# %s"
diff --git a/home/.config/nvim/after/lsp/clangd.lua b/home/.config/nvim/after/lsp/clangd.lua
deleted file mode 100644
index e9868ae..0000000
--- a/home/.config/nvim/after/lsp/clangd.lua
+++ /dev/null
@@ -1,57 +0,0 @@
-local function validate_bufnr(bufnr)
- vim.validate("bufnr", bufnr, "number")
- return bufnr == 0 and vim.api.nvim_get_current_buf() or bufnr
-end
-
-local function switch_source_header_splitcmd(bufnr, splitcmd)
- local method_name = "textDocument/switchSourceHeader"
- bufnr = validate_bufnr(bufnr)
- local client = vim.lsp.get_clients({ bufnr = bufnr, name = "clangd" })[1]
- if not client then
- return vim.notify(
- ("method %s is not supported by any servers active on the current buffer"):format(
- method_name
- )
- )
- end
- local params = vim.lsp.util.make_text_document_params(bufnr)
- client.request(method_name, params, function(err, result)
- if err then
- error(tostring(err))
- end
- if not result then
- vim.notify("corresponding file cannot be determined")
- return
- end
- vim.api.nvim_cmd({
- cmd = splitcmd,
- args = { vim.uri_to_fname(result) },
- }, {})
- end, bufnr)
-end
-
-return {
- capabilities = {
- offsetEncoding = { "utf-16" },
- },
- on_attach = function(_, bufnr)
- local function nmap(l, r, desc)
- vim.keymap.set("n", l, r, { buffer = bufnr, desc = desc })
- end
- nmap("gH", function()
- switch_source_header_splitcmd(bufnr, "edit")
- end, "[G]o to [H]eader")
- nmap("gvH", function()
- switch_source_header_splitcmd(bufnr, "vsplit")
- end, "[G]o in a [V]ertical split to [H]eader")
- nmap("gxH", function()
- switch_source_header_splitcmd(bufnr, "split")
- end, "[G]o in a [X]horizontal split to [H]eader")
- nmap("gtH", function()
- switch_source_header_splitcmd(bufnr, "tabedit")
- end, "[G]o in a [T]ab to [H]eader")
- end,
- init_options = {
- clangdFileStatus = true,
- },
-}
diff --git a/home/.config/nvim/after/lsp/fortls.lua b/home/.config/nvim/after/lsp/fortls.lua
deleted file mode 100644
index 8899dd2..0000000
--- a/home/.config/nvim/after/lsp/fortls.lua
+++ /dev/null
@@ -1,10 +0,0 @@
-return {
- cmd = {
- "fortls",
- "--notify_init",
- "--hover_signature",
- "--hover_language=fortran",
- "--use_signature_help",
- "--autocomplete_no_snippets",
- },
-}
diff --git a/home/.config/nvim/after/lsp/lua_ls.lua b/home/.config/nvim/after/lsp/lua_ls.lua
deleted file mode 100644
index af0e681..0000000
--- a/home/.config/nvim/after/lsp/lua_ls.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return {
- settings = {
- Lua = {
- diagnostics = {
- disable = { "missing-fields" },
- },
- },
- },
-}