aboutsummaryrefslogtreecommitdiff
path: root/modules/neovim/nvim/lua/config
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-06-19 10:20:42 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-06-19 10:20:42 -0400
commit666b313cd84b1c67c20da300bf9fbb356df199c1 (patch)
tree2408a092034cdfd4875c79bb337848a54f9d50d7 /modules/neovim/nvim/lua/config
parent408009f8a4886efa3fa8919d2a8f64da41c3c754 (diff)
downloadhome-666b313cd84b1c67c20da300bf9fbb356df199c1.tar.gz
cleanup
Diffstat (limited to 'modules/neovim/nvim/lua/config')
-rw-r--r--modules/neovim/nvim/lua/config/fzf.lua98
-rw-r--r--modules/neovim/nvim/lua/config/icons.lua3
-rw-r--r--modules/neovim/nvim/lua/config/noice.lua14
-rw-r--r--modules/neovim/nvim/lua/config/oil.lua22
-rw-r--r--modules/neovim/nvim/lua/config/statusline.lua59
5 files changed, 0 insertions, 196 deletions
diff --git a/modules/neovim/nvim/lua/config/fzf.lua b/modules/neovim/nvim/lua/config/fzf.lua
deleted file mode 100644
index ce5d047..0000000
--- a/modules/neovim/nvim/lua/config/fzf.lua
+++ /dev/null
@@ -1,98 +0,0 @@
-require("fzf-lua").setup({
- defaults = {
- file_icons = false,
- prompt = false,
- -- hidden = true,
- },
- previewers = {
- builtin = {
- syntax = false,
- treesitter = false,
- -- toggle_behavior = "extend",
- },
- },
- keymap = {
- builtin = {
- ["<C-p>"] = "toggle-preview",
- },
- },
- files = {
- previewer = "builtin",
- cwd_prompt = false,
- prompt = " ",
- },
- grep = {
- actions = {
- ['<ctrl-g>'] = nil,
- },
- no_header = true,
- no_header_i = true,
- },
- winopts = {
- -- fullscreen = true,
- row = 1,
- col = 0,
- width = 1,
- height = 0.4,
- title_pos = "left",
- backdrop = 70,
- -- border = "rounded",
- -- border = "none",
- treesitter = {
- enabled = false,
- fzf_colors = false,
- },
- border = { "", "─", "", "", "", "", "", "" },
- preview = {
- layout = "horizontal",
- title_pos = "right",
- -- title = false,
- -- hidden = true,
- scrollbar = false,
- -- border = "none",
- -- border = "rounded",
- winopts = {
- number = false,
- },
- border = function(_, m)
- if m.type == "fzf" then
- return "single"
- else
- assert(m.type == "nvim" and m.name == "prev" and type(m.layout) == "string")
- local b = { "┌", "─", "┐", "│", "┘", "─", "└", "│" }
- if m.layout == "down" then
- b[1] = "├" --top right
- b[3] = "┤" -- top left
- elseif m.layout == "up" then
- b[7] = "├" -- bottom left
- b[6] = "" -- remove bottom
- b[5] = "┤" -- bottom right
- elseif m.layout == "left" then
- b[3] = "┬" -- top right
- b[5] = "┴" -- bottom right
- b[6] = "" -- remove bottom
- else -- right
- b[1] = "┬" -- top left
- b[7] = "┴" -- bottom left
- b[6] = "" -- remove bottom
- end
- return b
- end
- end,
- },
- on_create = function()
- vim.keymap.set('t', '<C-e>', '<Up>', { silent = true, buffer = true })
- end,
- },
- fzf_opts = {
- -- ["--tmux"] = "",
- ["--style"] = "minimal",
- ["--ansi"] = true,
- ["--no-bold"] = "",
- ["--bind"] = "ctrl-n:down,ctrl-e:up",
- },
- hls = {
- border = "FloatBorder",
- },
-})
-
diff --git a/modules/neovim/nvim/lua/config/icons.lua b/modules/neovim/nvim/lua/config/icons.lua
deleted file mode 100644
index f8618a7..0000000
--- a/modules/neovim/nvim/lua/config/icons.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-require('mini.icons').setup({
- style = 'ascii',
-})
diff --git a/modules/neovim/nvim/lua/config/noice.lua b/modules/neovim/nvim/lua/config/noice.lua
deleted file mode 100644
index 29f7a1d..0000000
--- a/modules/neovim/nvim/lua/config/noice.lua
+++ /dev/null
@@ -1,14 +0,0 @@
-require("noice").setup({
- lsp = {
- override = {
- ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
- [ "vim.lsp.util.sylize_markdown" ] = true,
- },
-
- presets = {
- command_palette = true,
- log_message_to_split = true,
- lsp_doc_border = true,
- },
- },
-})
diff --git a/modules/neovim/nvim/lua/config/oil.lua b/modules/neovim/nvim/lua/config/oil.lua
deleted file mode 100644
index 592421b..0000000
--- a/modules/neovim/nvim/lua/config/oil.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-require("oil").setup({
- default_file_explorer = true,
- columns = {
- -- "icon"
- },
- constrain_cursor = "editable",
- skip_confirm_for_simple_edits = true,
- win_options = {
- number = false,
- relativenumber = false,
- cursorline = true,
- },
- view_options = {
- show_hidden = true,
- },
- float = {
- max_width = .7,
- max_height = .5,
- win_options = {
- },
- },
-})
diff --git a/modules/neovim/nvim/lua/config/statusline.lua b/modules/neovim/nvim/lua/config/statusline.lua
deleted file mode 100644
index 3f29aa2..0000000
--- a/modules/neovim/nvim/lua/config/statusline.lua
+++ /dev/null
@@ -1,59 +0,0 @@
-local modes = {
- ["n"] = "",
- ["no"] = "",
- ["nt"] = "",
- ["v"] = "VISUAL",
- ["V"] = "VISUAL-LINE",
- [""] = "VISUAL-BLOCK",
- ["s"] = "SELECT",
- ["S"] = "SELECT-LINE",
- [""] = "SELECT-BLOCK",
- ["i"] = "INSERT",
- ["ic"] = "INSERT",
- ["R"] = "REPLACE",
- ["Rv"] = "VISUAL-REPLACE",
- ["c"] = "COMMAND",
- ["cv"] = "VIM-EX",
- ["ce"] = "EX",
- ["r"] = "PROMPT",
- ["rm"] = "MOAR",
- ["r?"] = "CONFIRM",
- ["!"] = "SHELL",
- ["t"] = "TERMINAL",
-}
-
-local function mode()
- local m = vim.api.nvim_get_mode().mode
- local s = modes[m]
- return s == "" and "" or string.format("%s » ", s)
-end
-
-M = {}
-
-M.statusline = function()
- return table.concat {
- " ",
- mode(),
- "%f%=%p%% « %l, %c "
- }
-end
-
-M.termStatus = function()
- return table.concat {
- " ",
- mode(),
- "%{b:term_title}%=%p%% « %l, %c "
- }
-end
-
-M.setup = function(config)
- vim.api.nvim_exec([[
- set statusline=%!v:lua.M.statusline()
- augroup Statusline
- au!
- au TermOpen * setlocal statusline=%!v:lua.M.termStatus()
- augroup END
- ]], false)
-end
-
-M.setup()