Compare commits

..

24 Commits

Author SHA1 Message Date
ian d22c843462 ref: lsp properties 2026-07-19 23:30:21 +02:00
ian 787871f897 ref: lsp 2026-07-16 23:50:59 +02:00
ian 0da0684f14 feat: add lsp popup configuration 2026-07-15 23:51:00 +02:00
ian 8d58de8cd1 feat: add python formatter 2026-07-15 22:59:37 +02:00
ian ee42090f4f feat: python lsp server configuration 2026-07-15 22:49:37 +02:00
ian 254eca6c11 chore: change lsp binds 2026-07-15 22:47:47 +02:00
ian eb7111025a feat: add fzf grep word keybind 2026-07-15 14:33:36 +02:00
ian 49c7c3f9e6 chore: add lua lsp to dependencies check 2026-07-13 00:00:15 +02:00
ian 85a216b44e feat: add lsp configuration 2026-07-12 23:58:37 +02:00
ian 559319f6af fix: restored dependencies to check 2026-07-11 08:18:49 +02:00
ian 48223a6f54 feat deps-check: load only when used 2026-07-11 08:17:52 +02:00
ian 2b60372114 chore check-dep: add init message 2026-07-11 00:08:57 +02:00
ian 7aceac087e feat check dependencies: add color to messages 2026-07-11 00:02:16 +02:00
ian 44fdfa566d feat various: fzf, formatting, dependencies script 2026-07-10 23:34:51 +02:00
ian 1f54f75f62 feat: add indent blank line 2026-07-07 09:06:12 +02:00
ian a9f320f6f1 feat: status line and fix fzf binding 2026-06-30 23:59:28 +02:00
ian b9b395b736 fix: pack-lock file 2026-06-30 23:46:58 +02:00
ian a880f3a2c1 :feat: add fzf and indent blankline 2026-06-30 23:44:08 +02:00
ian 0ab0c08bc6 :chore: add oil.vim shortcuts 2026-06-30 23:43:32 +02:00
Ian 2ece932eb9 feat: auto-pairs 2026-06-30 23:09:34 +02:00
Ian a99eab400f feat: add oil.vim 2026-06-30 22:37:21 +02:00
Ian 0eedfb4bd5 chore: cmd height to 1 2026-06-30 08:55:02 +02:00
Ian 65758519cb feat: add neogit and refactor lua config loading 2026-06-30 00:04:03 +02:00
Ian d77bc5f929 feat: add catpuccin theme 2026-06-29 23:30:15 +02:00
21 changed files with 576 additions and 48 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
lua require('config.settings') lua require('config.init')
lua require('config.keybinds') lua require('status-line')
" vim.fn.stdpath("data") " vim.fn.stdpath("data")
"lua require('plugins') "lua require('plugins')
@@ -29,7 +29,7 @@ call matchadd('ColorColumn', '\%81v', 100)
" Find files and tab autocomplete " Find files and tab autocomplete
set path+=** set path+=**
set wildmenu set wildmenu
nnoremap <leader>fi :find<Space> "nnoremap <leader>fi :find<Space>
autocmd TermOpen * setlocal nonumber autocmd TermOpen * setlocal nonumber
+15
View File
@@ -0,0 +1,15 @@
return {
cmd = { "lua-language-server" },
filetypes = { "lua" },
root_markers = { { ".luarc.json", ".luarc.jsonc" }, ".git" },
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
},
},
},
}
+68
View File
@@ -0,0 +1,68 @@
---@brief
---
--- https://github.com/microsoft/pyright
---
--- `pyright`, a static type checker and language server for python
local function set_python_path(command)
local path = command.args
local clients = vim.lsp.get_clients {
bufnr = vim.api.nvim_get_current_buf(),
name = 'pyright',
}
for _, client in ipairs(clients) do
if client.settings then
client.settings.python =
vim.tbl_deep_extend('force', client.settings.python --[[@as table]], { pythonPath = path })
else
client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } })
end
client:notify('workspace/didChangeConfiguration', { settings = nil })
end
end
---@type vim.lsp.Config
return {
cmd = { 'pyright-langserver', '--stdio' },
filetypes = { 'python' },
root_markers = {
'pyrightconfig.json',
'pyproject.toml',
'setup.py',
'setup.cfg',
'requirements.txt',
'Pipfile',
'.git',
},
---@type lspconfig.settings.pyright
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = 'openFilesOnly',
},
},
},
on_attach = function(client, bufnr)
vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightOrganizeImports', function()
local params = {
command = 'pyright.organizeimports',
arguments = { vim.uri_from_bufnr(bufnr) },
}
-- Using client.request() directly because "pyright.organizeimports" is private
-- (not advertised via capabilities), which client:exec_cmd() refuses to call.
-- https://github.com/neovim/neovim/blob/c333d64663d3b6e0dd9aa440e433d346af4a3d81/runtime/lua/vim/lsp/client.lua#L1024-L1030
---@diagnostic disable-next-line: param-type-mismatch
client.request('workspace/executeCommand', params, nil, bufnr)
end, {
desc = 'Organize Imports',
})
vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightSetPythonPath', set_python_path, {
desc = 'Reconfigure pyright with the provided python path',
nargs = 1,
complete = 'file',
})
end,
}
+44
View File
@@ -0,0 +1,44 @@
local M = {}
CmdsList = nil
function M.checkCommand(cmd, desc)
local toRun = ""
if IS_UNIX then
toRun = "command -v " .. cmd
else
toRun = "where " .. cmd
end
local p = io.popen(toRun)
local output = p:read("*l")
p:close()
if output == nil and desc ~= nil and desc ~= "" then
vim.api.nvim_echo({ { "" .. cmd .. " [" .. desc .. "] - not found!", "DiagnosticError" } }, true, {})
elseif output == nil then
vim.api.nvim_echo({ { "" .. cmd .. " not found!", "DiagnosticError" } }, true, {})
else
vim.api.nvim_echo({ { "" .. cmd, "DiagnosticOk" } }, true, {})
end
end
function M.run()
if CmdsList == nil or next(CmdsList) == nil then
vim.api.nvim_echo({ { "Dependencies list passed is null or empty, nothing to check", "DiagnosticWarn" } }, true, {})
return
end
print("Check installed system commands:")
for _, cmd in ipairs(CmdsList) do
M.checkCommand(cmd.cmd, cmd.desc)
end
end
function M.setup(cmds)
IS_UNIX = package.config:sub(1, 1) ~= "\\"
CmdsList = cmds
end
return M
+1
View File
@@ -0,0 +1 @@
require('nvim-autopairs').setup()
+28
View File
@@ -0,0 +1,28 @@
function Run()
local dep = require("check_dependencies")
dep.setup({
{ cmd = "git", desc = "git" },
-- fzf dependencies
{ cmd = "fzf", desc = "fuzzy finder" },
{ cmd = "fd", desc = "better find" },
{ cmd = "bat", desc = "cat clone" },
{ cmd = "rg", desc = "rip grep" },
-- Conform => formatters
{ cmd = "stylua", desc = "lua formatter" },
{ cmd = "ruff", desc = "python formatter" },
-- Lsp server
{ cmd = "lua-language-server", desc = "lua lsp server" },
{ cmd = "pyright-langserver", desc = "python lsp server" },
-- Test not exists
{ cmd = "fff", desc = "test not exists command" },
})
dep.run()
end
vim.api.nvim_create_user_command("DependenciesCheck", Run, {})
+6
View File
@@ -0,0 +1,6 @@
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
python = { "ruff_format"},
},
})
+44
View File
@@ -0,0 +1,44 @@
vim.keymap.set("n", "<leader>fz", "<cmd>FzfLua<cr>")
vim.keymap.set("n", "<leader>ff", "<cmd>FzfLua files<cr>")
vim.keymap.set("n", "<leader>fg", "<cmd>FzfLua live_grep<cr>")
vim.keymap.set("n", "<leader>fr", "<cmd>FzfLua resume<cr>")
vim.keymap.set("n", "<leader>fb", "<cmd>FzfLua buffers<cr>")
vim.keymap.set("n", "<leader>fw", "<cmd>FzfLua grep_cword<cr>")
vim.keymap.set("n", "<leader>fW", "<cmd>FzfLua grep_cWORD<cr>")
require("fzf-lua").setup({
defaults = {
formatter = "path.dirname_first",
},
winopts = {
fullscreen = true,
preview = {
default = "bat",
vertical = "down:60%",
horizontal = "right:50%",
layout = "vertical",
},
},
keymap = {
fzf = {
["ctrl-z"] = "abort",
["ctrl-u"] = "unix-line-discard",
["ctrl-f"] = "half-page-down",
["ctrl-b"] = "half-page-up",
["ctrl-a"] = "beginning-of-line",
["ctrl-e"] = "end-of-line",
["alt-a"] = "toggle-all",
["alt-g"] = "first",
["alt-G"] = "last",
["ctrl-k"] = "up",
["ctrl-j"] = "down",
-- Only valid with fzf previewers (bat/cat/git/etc)
["f3"] = "toggle-preview-wrap",
["f4"] = "toggle-preview",
["ctrl-q"] = "select-all+accept",
-- ["<S-e>"] = "preview-page-down",
-- ["<S-y>"] = "preview-page-up",
},
},
})
+5
View File
@@ -0,0 +1,5 @@
require('ibl').setup({
indent = { char= '¦' },
scope = { enabled = false},
--use_treesitter = true,
})
+15
View File
@@ -0,0 +1,15 @@
require("config.settings")
require("config.keybinds")
require("config.pack")
require("config.lsp")
require("config.theme")
require("config.neogit")
require("config.oil")
require("config.autopairs")
require("config.fzf")
require("config.indent_blank_line")
require("config.conform")
require("config.check_dependencies")
+41 -32
View File
@@ -1,55 +1,64 @@
vim.api.nvim_create_user_command('W', "update", { nargs='?'}) vim.api.nvim_create_user_command("W", "update", { nargs = "?" })
local bind = vim.keymap.set local bind = vim.keymap.set
vim.g.mapleader = "," vim.g.mapleader = ","
bind('n', '<leader>v', '<cmd>vsp<cr><C-w>l', { desc = 'Vertical split' }) bind("n", "<leader>v", "<cmd>vsp<cr><C-w>l", { desc = "Vertical split" })
--bind('n', '<leader>e', '<cmd>e .<cr><cmd>set relativenumber<cr>', { desc = 'Netrw file manager' }) bind("n", "<leader>e", "<cmd>e .<cr><cmd>set relativenumber<cr>", { desc = "Netrw file manager" })
-- Buffer navigation -- Buffer navigation
bind('n', '<M-l>', '<cmd>bp<cr>', { desc = 'Buffer previous' }) bind("n", "<M-l>", "<cmd>bp<cr>", { desc = "Buffer previous" })
bind('n', '<M-h>', '<cmd>bn<cr>', { desc = 'Buffer next' }) bind("n", "<M-h>", "<cmd>bn<cr>", { desc = "Buffer next" })
bind('n', '<M-Down>', '<cmd>CloseOpenBuff<cr>', { desc = 'Buffer close' }) bind("n", "<M-Down>", "<cmd>CloseOpenBuff<cr>", { desc = "Buffer close" })
-- Buffer resize -- Buffer resize
bind('n', '<leader>+', '<cmd>vertical resize +5<cr>', { desc = 'Buffer increase size' }) bind("n", "<leader>+", "<cmd>vertical resize +5<cr>", { desc = "Buffer increase size" })
bind('n', '<leader>-', '<cmd>vertical resize -5<cr>', { desc = 'Buffer decrease size' }) bind("n", "<leader>-", "<cmd>vertical resize -5<cr>", { desc = "Buffer decrease size" })
-- Tab movements -- Tab movements
bind('n', '<C-M-n>', '<cmd>tabnew<cr>', { desc = 'New tab' }) bind("n", "<C-M-n>", "<cmd>tabnew<cr>", { desc = "New tab" })
bind('n', '<C-M-Down>', '<cmd>tabclose<cr>', { desc = 'Close tab' }) bind("n", "<C-M-Down>", "<cmd>tabclose<cr>", { desc = "Close tab" })
bind('n', '<C-M-l>', '<cmd>tabnext<cr>', { desc = 'Next tab' }) bind("n", "<C-M-l>", "<cmd>tabnext<cr>", { desc = "Next tab" })
bind('n', '<C-M-h>', '<cmd>tabprevious<cr>', { desc = 'Previous tab' }) bind("n", "<C-M-h>", "<cmd>tabprevious<cr>", { desc = "Previous tab" })
-- Movements into buffer -- Movements into buffer
bind('n', "<C-d>", "<C-d>zz", { desc = 'Center cursor after page down' }) bind("n", "<C-d>", "<C-d>zz", { desc = "Center cursor after page down" })
bind('n', "<C-u>", "<C-u>zz", { desc = 'Center cursor after page up' }) bind("n", "<C-u>", "<C-u>zz", { desc = "Center cursor after page up" })
-- Move lines in visual mode -- Move lines in visual mode
bind('v', 'K', ":m '<-2<cr>gv=gv", { desc = 'Move highlighted lines up' }) bind("v", "K", ":m '<-2<cr>gv=gv", { desc = "Move highlighted lines up" })
bind('v', 'J', ":m '>+1<cr>gv=gv", { desc = 'Move highlighted lines down' }) bind("v", "J", ":m '>+1<cr>gv=gv", { desc = "Move highlighted lines down" })
-- Text cleaning -- Text cleaning
bind('n', '<leader>w', '<cmd>%s/\\s\\+$/<cr><cmd>nohlsearch<cr>', { desc = 'Delete white spaces at end of each line' }) bind("n", "<leader>w", "<cmd>%s/\\s\\+$/<cr><cmd>nohlsearch<cr>", { desc = "Delete white spaces at end of each line" })
-- Quick fix list -- Quick fix list
bind('n', '<leader>cc', '<cmd>cclose<cr>') bind("n", "<leader>cc", "<cmd>cclose<cr>")
bind('n', '<leader>co', '<cmd>copen<cr>') bind("n", "<leader>co", "<cmd>copen<cr>")
-- Oil vim
vim.keymap.set("n", "<M-1>", function()
local dir = vim.fn.expand("%:p:h")
if dir == "" then
dir = vim.loop.cwd()
end
require("oil").open(dir)
end, { desc = "Open Oil in current file directory" })
-- Telescope -- Conform
-- bind('n', '<leader>ff', '<cmd>Telescope find_files<cr>') vim.api.nvim_create_user_command("FormatConform", function(opts)
-- bind('n', '<leader>fg', '<cmd>Telescope live_grep<cr>') require("conform").format()
-- bind('n', '<leader>fg', require("telescope").extensions.live_grep_args.live_grep_args, { noremap = true }) end, {
-- bind('n', '<leader>fb', '<cmd>Telescope buffers<cr>') desc = "Format current buffer",
-- bind('n', '<leader>fh', '<cmd>Telescope help_tags<cr>') })
-- Testing funcs bind("n", "<leader><C-M-l>", "<cmd>FormatConform<cr>")
-- vim.api.nvim_create_user_command('MyFuncs', require('my_funcs').reopen, { nargs='?'})
-- bind('n', '<leader>r', '<cmd>MyFuncs<cr>')
-- vim.api.nvim_create_user_command('MyFuncsPP', require('my_funcs').print_path, { nargs='?'})
-- bind('n', '<leader>pp', '<cmd>MyFuncsPP<cr>')
-- bind({'n', 'i'}, '<C-w>', '<cmd>w<cr>', { desc = 'Save with CTRL+s' })
-- Lsp
bind("n", "<C-h>", vim.diagnostic.open_float)
bind("n", "<leader>gl", vim.diagnostic.setloclist)
bind("n", "<leader>gq", vim.diagnostic.setqflist)
bind("n", "<leader>gf", vim.lsp.buf.format)
bind("n", "K", vim.lsp.buf.hover)
bind("n", "<leader>k", vim.lsp.buf.signature_help)
+24
View File
@@ -0,0 +1,24 @@
| Set | Mapping | Function | Neovim Function | Brief Description |
| --- | ------------- | ---------------------------- | --------------------------------------- | --------------------------------------------------------------------------- |
| y | `gd` | Go to Definition | `vim.lsp.buf.definition()` | Jump to the symbol's definition. |
| y | `gD` | Go to Declaration | `vim.lsp.buf.declaration()` | Jump to the symbol's declaration. |
| y | `K` | Hover Documentation | `vim.lsp.buf.hover()` | Show documentation and type information for the symbol under the cursor. |
| y | `<leader>k` | Signature Help | `vim.lsp.buf.signature_help()` | Display the current function signature and parameter information. |
| y | `grr` | Find References | `vim.lsp.buf.references()` | List all references to the symbol across the project. |
| y | `gri` | Go to Implementation | `vim.lsp.buf.implementation()` | Jump to the implementation(s) of the symbol. |
| y | `grt` | Go to Type Definition | `vim.lsp.buf.type_definition()` | Jump to the definition of the symbol's type. |
| y | `grn` | Rename Symbol | `vim.lsp.buf.rename()` | Rename the symbol and update all references. |
| y | `gra` | Code Actions | `vim.lsp.buf.code_action()` | Show available quick fixes and refactoring actions. |
| ? | `gO` | Document Symbols | `vim.lsp.buf.document_symbol()` | List all symbols (functions, classes, variables, etc.) in the current file. |
| y | `[d` | Previous Diagnostic | `vim.diagnostic.goto_prev()` | Jump to the previous diagnostic (error, warning, hint, or info). |
| y | `]d` | Next Diagnostic | `vim.diagnostic.goto_next()` | Jump to the next diagnostic. |
| y | `<leader>e` | Diagnostic Float | `vim.diagnostic.open_float()` | Show diagnostic details in a floating window. |
| y | `<leader>gl` | Diagnostics to Location List | `vim.diagnostic.setloclist()` | Populate the location list with diagnostics from the current buffer. |
| y | `<leader>f` | Format Buffer | `vim.lsp.buf.format()` | Format the current buffer using the LSP server. |
| n | `<leader>wa` | Add Workspace Folder | `vim.lsp.buf.add_workspace_folder()` | Add a folder to the current LSP workspace. |
| n | `<leader>wr` | Remove Workspace Folder | `vim.lsp.buf.remove_workspace_folder()` | Remove a folder from the current LSP workspace. |
| n | `<leader>wl` | List Workspace Folders | `vim.lsp.buf.list_workspace_folders()` | List all folders in the current LSP workspace. |
| n | `<leader>cl` | Run CodeLens | `vim.lsp.codelens.run()` | Execute the CodeLens action at the current cursor position. |
| n | `<leader>cr` | Refresh CodeLens | `vim.lsp.codelens.refresh()` | Refresh available CodeLens actions in the buffer. |
| n | `<leader>th` | Toggle Inlay Hints | `vim.lsp.inlay_hint.enable()` | Enable or disable inline type and parameter hints. |
+10
View File
@@ -0,0 +1,10 @@
vim.o.autocomplete = true
vim.opt.complete:append('o')
vim.o.pummaxwidth = 40
vim.o.completeopt = "fuzzy,menuone,noselect,noinsert"
vim.lsp.enable({
"lua_ls",
"python_ls"
})
+2
View File
@@ -0,0 +1,2 @@
local neogit = require('neogit')
vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<cr>", { desc = "Open Neogit UI" })
+209
View File
@@ -0,0 +1,209 @@
require("nvim-web-devicons").setup({
default = true,
})
require("oil").setup({
-- Oil will take over directory buffers (e.g. `vim .` or `:e src/`)
-- Set to false if you want some other plugin (e.g. netrw) to open when you edit directories.
default_file_explorer = true,
-- Id is automatically added at the beginning, and name at the end
-- See :help oil-columns
columns = {
"icon",
"permissions",
"size",
-- "mtime",
},
-- Buffer-local options to use for oil buffers
buf_options = {
buflisted = false,
bufhidden = "hide",
},
-- Window-local options to use for oil buffers
win_options = {
wrap = false,
signcolumn = "no",
cursorcolumn = false,
foldcolumn = "0",
spell = false,
list = false,
conceallevel = 3,
concealcursor = "nvic",
},
-- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
delete_to_trash = false,
-- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
skip_confirm_for_simple_edits = false,
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
-- (:help prompt_save_on_select_new_entry)
prompt_save_on_select_new_entry = true,
-- Oil will automatically delete hidden buffers after this delay
-- You can set the delay to false to disable cleanup entirely
-- Note that the cleanup process only starts when none of the oil buffers are currently displayed
cleanup_delay_ms = 2000,
lsp_file_methods = {
-- Enable or disable LSP file operations
enabled = true,
-- Time to wait for LSP file operations to complete before skipping
timeout_ms = 1000,
-- Set to true to autosave buffers that are updated with LSP willRenameFiles
-- Set to "unmodified" to only save unmodified buffers
autosave_changes = false,
},
-- Constrain the cursor to the editable parts of the oil buffer
-- Set to `false` to disable, or "name" to keep it on the file names
constrain_cursor = "editable",
-- Set to true to watch the filesystem for changes and reload oil
watch_for_changes = false,
-- Keymaps in oil buffer. Can be any value that `vim.keymap.set` accepts OR a table of keymap
-- options with a `callback` (e.g. { callback = function() ... end, desc = "", mode = "n" })
-- Additionally, if it is a string that matches "actions.<name>",
-- it will use the mapping at require("oil.actions").<name>
-- Set to `false` to remove a keymap
-- See :help oil-actions for a list of all available actions
keymaps = {
["g?"] = { "actions.show_help", mode = "n" },
["<CR>"] = "actions.select",
["<C-s>"] = { "actions.select", opts = { vertical = true } },
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
["<C-t>"] = { "actions.select", opts = { tab = true } },
["<C-p>"] = "actions.preview",
-- ["<C-c>"] = { "actions.close", mode = "n" },
["q"] = { "actions.close", mode = "n" },
["<C-l>"] = "actions.refresh",
["-"] = { "actions.parent", mode = "n" },
["_"] = { "actions.open_cwd", mode = "n" },
["`"] = { "actions.cd", mode = "n" },
["g~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
["gs"] = { "actions.change_sort", mode = "n" },
["gx"] = "actions.open_external",
["g."] = { "actions.toggle_hidden", mode = "n" },
["g\\"] = { "actions.toggle_trash", mode = "n" },
},
-- Set to false to disable all of the above keymaps
use_default_keymaps = true,
view_options = {
-- Show files and directories that start with "."
show_hidden = true,
-- This function defines what is considered a "hidden" file
is_hidden_file = function(name, bufnr)
local m = name:match("^%.")
return m ~= nil
end,
-- This function defines what will never be shown, even when `show_hidden` is set
is_always_hidden = function(name, bufnr)
return false
end,
-- Sort file names with numbers in a more intuitive order for humans.
-- Can be "fast", true, or false. "fast" will turn it off for large directories.
natural_order = "fast",
-- Sort file and directory names case insensitive
case_insensitive = false,
sort = {
-- sort order can be "asc" or "desc"
-- see :help oil-columns to see which columns are sortable
{ "type", "asc" },
{ "name", "asc" },
},
-- Customize the highlight group for the file name
highlight_filename = function(entry, is_hidden, is_link_target, is_link_orphan)
return nil
end,
},
-- Extra arguments to pass to SCP when moving/copying files over SSH
extra_scp_args = {},
-- Extra arguments to pass to aws s3 when creating/deleting/moving/copying files using aws s3
extra_s3_args = {},
-- EXPERIMENTAL support for performing file operations with git
git = {
-- Return true to automatically git add/mv/rm files
add = function(path)
return false
end,
mv = function(src_path, dest_path)
return false
end,
rm = function(path)
return false
end,
},
-- Configuration for the floating window in oil.open_float
float = {
-- Padding around the floating window
padding = 2,
-- max_width and max_height can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
max_width = 0,
max_height = 0,
border = nil,
win_options = {
winblend = 0,
},
-- optionally override the oil buffers window title with custom function: fun(winid: integer): string
get_win_title = nil,
-- preview_split: Split direction: "auto", "left", "right", "above", "below".
preview_split = "auto",
-- This is the config that will be passed to nvim_open_win.
-- Change values here to customize the layout
override = function(conf)
return conf
end,
},
-- Configuration for the file preview window
preview_win = {
-- Whether the preview window is automatically updated when the cursor is moved
update_on_cursor_moved = true,
-- How to open the preview window "load"|"scratch"|"fast_scratch"
preview_method = "fast_scratch",
-- A function that returns true to disable preview on a file e.g. to avoid lag
disable_preview = function(filename)
return false
end,
-- Window-local options to use for preview window buffers
win_options = {},
},
-- Configuration for the floating action confirmation window
confirmation = {
-- Width dimensions can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
-- min_width and max_width can be a single value or a list of mixed integer/float types.
-- max_width = {100, 0.8} means "the lesser of 100 columns or 80% of total"
max_width = 0.9,
-- min_width = {40, 0.4} means "the greater of 40 columns or 40% of total"
min_width = { 40, 0.4 },
-- optionally define an integer/float for the exact width of the preview window
width = nil,
-- Height dimensions can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
-- min_height and max_height can be a single value or a list of mixed integer/float types.
-- max_height = {80, 0.9} means "the lesser of 80 columns or 90% of total"
max_height = 0.9,
-- min_height = {5, 0.1} means "the greater of 5 columns or 10% of total"
min_height = { 5, 0.1 },
-- optionally define an integer/float for the exact height of the preview window
height = nil,
border = nil,
win_options = {
winblend = 0,
},
},
-- Configuration for the floating progress window
progress = {
max_width = 0.9,
min_width = { 40, 0.4 },
width = nil,
max_height = { 10, 0.9 },
min_height = { 5, 0.1 },
height = nil,
border = nil,
minimized_border = "none",
win_options = {
winblend = 0,
},
},
-- Configuration for the floating SSH window
ssh = {
border = nil,
},
-- Configuration for the floating keymaps help window
keymaps_help = {
border = nil,
},
})
+10
View File
@@ -0,0 +1,10 @@
vim.pack.add({
{ src = "https://github.com/catppuccin/nvim", name = "catppuccin" },
{ src = "https://github.com/neogitorg/neogit", name = "neogit" },
{ src = "https://github.com/stevearc/oil.nvim", name = "oil.nvim" },
{ src = "https://github.com/nvim-tree/nvim-web-devicons", name = "web-dev-devicons" },
{ src = "https://github.com/windwp/nvim-autopairs", name = "nvim-autopairs" },
{ src = "https://github.com/ibhagwan/fzf-lua", name = "fzf-lua" },
{ src = "https://github.com/lukas-reineke/indent-blankline.nvim", name = "indent-blankline.nvim" },
{ src = "https://github.com/stevearc/conform.nvim", name = "conform.nvim" },
})
+1 -1
View File
@@ -116,7 +116,7 @@ vim.opt.undodir = "/tmp//"
----------------------------------------------------------------------- -----------------------------------------------------------------------
-- Height of the command line area. -- Height of the command line area.
vim.opt.cmdheight = 0 vim.opt.cmdheight = 1
----------------------------------------------------------------------- -----------------------------------------------------------------------
+1
View File
@@ -0,0 +1 @@
vim.cmd.colorscheme('catppuccin-frappe')
@@ -18,8 +18,8 @@ local function statusline()
local align_right = "%=" local align_right = "%="
local fileencoding = " %{&fileencoding?&fileencoding:&encoding}" local fileencoding = " %{&fileencoding?&fileencoding:&encoding}"
local fileformat = "[%{&fileformat}]" local fileformat = "[%{&fileformat}]"
local percentage = " %p%%"
local linecol = "%l/%L:%c" local linecol = "%l/%L:%c"
local percentage = "|%p%%"
if branch then if branch then
return string.format( return string.format(
@@ -31,7 +31,7 @@ local function statusline()
modified, modified,
align_right, align_right,
fileencoding, fileencoding,
filetype, -- filetype,
fileformat, fileformat,
linecol, linecol,
percentage percentage
@@ -44,7 +44,7 @@ local function statusline()
modified, modified,
align_right, align_right,
fileencoding, fileencoding,
filetype, -- filetype,
fileformat, fileformat,
linecol, linecol,
percentage percentage
+36
View File
@@ -0,0 +1,36 @@
{
"plugins": {
"catppuccin": {
"rev": "e068ab5f8261f23f6f71ffd8791ae40315b77b9c",
"src": "https://github.com/catppuccin/nvim"
},
"conform.nvim": {
"rev": "619363c30309d29ffa631e67c8183f2a72caa373",
"src": "https://github.com/stevearc/conform.nvim"
},
"fzf-lua": {
"rev": "39da6060d53659acf3ec118200bc48721b29b8fd",
"src": "https://github.com/ibhagwan/fzf-lua"
},
"indent-blankline.nvim": {
"rev": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03",
"src": "https://github.com/lukas-reineke/indent-blankline.nvim"
},
"neogit": {
"rev": "43ea1a0854052e583f647e0b35879f0158a70a78",
"src": "https://github.com/neogitorg/neogit"
},
"nvim-autopairs": {
"rev": "7b9923abad60b903ece7c52940e1321d39eccc79",
"src": "https://github.com/windwp/nvim-autopairs"
},
"oil.nvim": {
"rev": "b73018b75affd13fa38e2fc94ef753b465f770d7",
"src": "https://github.com/stevearc/oil.nvim"
},
"web-dev-devicons": {
"rev": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c",
"src": "https://github.com/nvim-tree/nvim-web-devicons"
}
}
}
+9 -8
View File
@@ -6,23 +6,23 @@ local Plug = vim.fn['plug#']
vim.call('plug#begin', '~/.local/share/nvim/plugged') vim.call('plug#begin', '~/.local/share/nvim/plugged')
Plug 'lukas-reineke/indent-blankline.nvim' Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'lervag/vimtex' -- Plug 'lervag/vimtex'
-- Colorscheme -- Colorscheme
Plug 'sainnhe/sonokai' Plug 'sainnhe/sonokai'
Plug 'catppuccin/nvim' Plug 'catppuccin/nvim' -- ok
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround' -- ok
-- Git -- Git
-- Plug 'NeogitOrg/neogit' -- Plug 'NeogitOrg/neogit'
-- Plug 'sindrets/diffview.nvim' -- Plug 'sindrets/diffview.nvim'
-- Plug 'lewis6991/gitsigns.nvim' -- Plug 'lewis6991/gitsigns.nvim'
Plug 'ibhagwan/fzf-lua' Plug 'ibhagwan/fzf-lua' -- ok
Plug 'nvim-neo-tree/neo-tree.nvim' -- Plug 'nvim-neo-tree/neo-tree.nvim'
Plug 'MunifTanjim/nui.nvim' -- Plug 'MunifTanjim/nui.nvim'
-- Fs tree + deps -- Fs tree + deps
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'
@@ -51,9 +51,10 @@ Plug 'rafamadriz/friendly-snippets'
Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'}) Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'})
Plug('nvim-telescope/telescope-live-grep-args.nvim') Plug('nvim-telescope/telescope-live-grep-args.nvim')
Plug 'windwp/nvim-autopairs' Plug 'windwp/nvim-autopairs' -- ok
Plug 'windwp/nvim-ts-autotag' -- need treesitter
Plug 'windwp/nvim-ts-autotag'
-- EditorConfig -- EditorConfig
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'