Compare commits

..

5 Commits

8 changed files with 62 additions and 36 deletions

View File

@@ -22,7 +22,6 @@
black black
nixfmt nixfmt
rustfmt rustfmt
eslint_d
nil nil
python313Packages.python-lsp-server python313Packages.python-lsp-server
typescript-language-server typescript-language-server

View File

@@ -1,6 +1,10 @@
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = "," vim.g.maplocalleader = ","
-- Scrolloff
local scrolloff = math.floor(vim.o.lines / 2) - 3
vim.opt.scrolloff = scrolloff
require("plugins.init") require("plugins.init")
require("config.autocmd") require("config.autocmd")
require("config.binds") require("config.binds")
@@ -39,10 +43,6 @@ vim.opt.incsearch = true
-- Nowrap -- Nowrap
vim.opt.wrap = false vim.opt.wrap = false
-- Scrolloff
local scrolloff = math.floor(vim.o.lines / 2) - 3
vim.opt.scrolloff = scrolloff
-- Indent -- Indent
vim.o.autoindent = true vim.o.autoindent = true

View File

@@ -83,5 +83,22 @@ Keymap("n", "<leader>fg", function()
end) end)
Keymap("n", "<leader>fb", function() Keymap("n", "<leader>fb", function()
builtin.buffers({ cwd = vim.fn.expand("%:p:h") }) -- buffers dont need cwd, but harmless builtin.buffers({ show_all_buffers = true })
end)
-- Tab binds
Keymap("n", "<C-T>l", function()
vim.cmd("tabnext")
end)
Keymap("n", "<C-T>h", function()
vim.cmd("tabprevious")
end)
Keymap("n", "<C-T>j", function()
vim.cmd("tabnew")
end)
Keymap("n", "<C-T>q", function()
vim.cmd("tabclose")
end) end)

View File

@@ -7,8 +7,9 @@ require("conform").setup({
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
javascript = { "prettier" }, javascript = { "prettier" },
typescript = { "prettier" },
html = { "prettier" }, html = { "prettier" },
svelte = { "eslint_d" }, svelte = { "prettier" },
python = { "black" }, python = { "black" },
nix = { "nixfmt" }, nix = { "nixfmt" },
css = { "prettier" }, css = { "prettier" },

View File

@@ -1,6 +1,7 @@
vim.pack.add({ vim.pack.add({
{ src = "https://github.com/neovim/nvim-lspconfig", name = "lspconfig" }, { src = "https://github.com/neovim/nvim-lspconfig", name = "lspconfig" },
{ src = "https://github.com/saghen/blink.cmp", name = "blink" }, { src = "https://github.com/saghen/blink.cmp", name = "blink" },
{ src = "https://github.com/saghen/blink.lib", name = "blink-lib" },
}) })
vim.lsp.config("lua_ls", { vim.lsp.config("lua_ls", {

View File

@@ -20,16 +20,16 @@ require("auto-save").setup({
require("remember").setup({}) require("remember").setup({})
-- enable scrolleof -- enable scrolleof
-- require("scrollEOF").setup({ require("scrollEOF").setup({
-- -- The pattern used for the internal autocmd to determine -- The pattern used for the internal autocmd to determine
-- -- where to run scrollEOF. See https://neovim.io/doc/user/autocmd.html#autocmd-pattern -- where to run scrollEOF. See https://neovim.io/doc/user/autocmd.html#autocmd-pattern
-- pattern = "*", pattern = "*",
-- -- Whether or not scrollEOF should be enabled in insert mode -- Whether or not scrollEOF should be enabled in insert mode
-- insert_mode = false, insert_mode = false,
-- -- Whether or not scrollEOF should be enabled in floating windows -- Whether or not scrollEOF should be enabled in floating windows
-- floating = true, floating = true,
-- -- List of filetypes to disable scrollEOF for. -- List of filetypes to disable scrollEOF for.
-- disabled_filetypes = { "terminal" }, disabled_filetypes = { "terminal" },
-- -- List of modes to disable scrollEOF for. see https://neovim.io/doc/user/builtin.html#mode() -- List of modes to disable scrollEOF for. see https://neovim.io/doc/user/builtin.html#mode()
-- disabled_modes = { "t", "nt" }, disabled_modes = { "t", "nt" },
-- }) })

View File

@@ -8,11 +8,23 @@ vim.pack.add({
{ src = "https://github.com/2kabhishek/nerdy.nvim", name = "telescope-nerdy" }, { src = "https://github.com/2kabhishek/nerdy.nvim", name = "telescope-nerdy" },
}) })
local actions = require("telescope.actions")
require("telescope").setup({ require("telescope").setup({
defaults = { defaults = {
file_ignore_patterns = { ".git", ".venv", ".node_modules", "node_modules", ".svelte-kit", ".vscode" }, file_ignore_patterns = { ".git", ".venv", ".node_modules", "node_modules", ".svelte-kit", ".vscode" },
}, },
pickers = { pickers = {
buffers = {
show_all_buffers = true,
mappings = {
i = {
["<CR>"] = actions.select_drop,
},
n = {
["<CR>"] = actions.select_drop,
},
},
},
live_grep = { live_grep = {
additional_args = function() additional_args = function()
return { "--hidden" } return { "--hidden" }

View File

@@ -5,19 +5,23 @@
"src": "https://github.com/okuuva/auto-save.nvim" "src": "https://github.com/okuuva/auto-save.nvim"
}, },
"blink": { "blink": {
"rev": "456d38d1cd3743926f329204c2340f3e7840aad6", "rev": "2ef3db111181c5eef22a462aa0122349a6027f28",
"src": "https://github.com/saghen/blink.cmp" "src": "https://github.com/saghen/blink.cmp"
}, },
"blink-lib": {
"rev": "f29d8bac6549bc1e7d699c83f680823d7def98bd",
"src": "https://github.com/saghen/blink.lib"
},
"catppuccin": { "catppuccin": {
"rev": "426dbebe06b5c69fd846ceb17b42e12f890aedf1", "rev": "426dbebe06b5c69fd846ceb17b42e12f890aedf1",
"src": "https://github.com/catppuccin/nvim" "src": "https://github.com/catppuccin/nvim"
}, },
"conform": { "conform": {
"rev": "086a40dc7ed8242c03be9f47fbcee68699cc2395", "rev": "dca1a190aa85f9065979ef35802fb77131911106",
"src": "https://github.com/stevearc/conform.nvim" "src": "https://github.com/stevearc/conform.nvim"
}, },
"devicons": { "devicons": {
"rev": "c72328a5494b4502947a022fe69c0c47e53b6aa6", "rev": "2795c26c916bb3c57dde308b82be51971fa92747",
"src": "https://github.com/nvim-tree/nvim-web-devicons" "src": "https://github.com/nvim-tree/nvim-web-devicons"
}, },
"flash": { "flash": {
@@ -33,15 +37,11 @@
"src": "https://github.com/mfussenegger/nvim-lint" "src": "https://github.com/mfussenegger/nvim-lint"
}, },
"lspconfig": { "lspconfig": {
"rev": "c588db330592fa477a70d2fee6ba20a57194bdc3", "rev": "451d4ef9abd4f0f08e379ef0d55d1c391b6125a7",
"src": "https://github.com/neovim/nvim-lspconfig" "src": "https://github.com/neovim/nvim-lspconfig"
}, },
"lspkind": {
"rev": "c7274c48137396526b59d86232eabcdc7fed8a32",
"src": "https://github.com/onsails/lspkind.nvim"
},
"lualine": { "lualine": {
"rev": "f5d2a8570f8b736ddb9bb4be504355bcd6e15ec8", "rev": "131a558e13f9f28b15cd235557150ccb23f89286",
"src": "https://github.com/nvim-lualine/lualine.nvim" "src": "https://github.com/nvim-lualine/lualine.nvim"
}, },
"lualine-time": { "lualine-time": {
@@ -49,13 +49,9 @@
"src": "https://github.com/archibate/lualine-time" "src": "https://github.com/archibate/lualine-time"
}, },
"mini": { "mini": {
"rev": "69b7433355664cf76898eb86a12a019f39bd86d1", "rev": "a5fda91040763cf9ad70bdce1c656b0f4ba1d16e",
"src": "https://github.com/echasnovski/mini.nvim" "src": "https://github.com/echasnovski/mini.nvim"
}, },
"neorg": {
"rev": "1f14d72aad7165eac307a2a2f6be0fb97a04b3c2",
"src": "https://github.com/nvim-neorg/neorg"
},
"noice": { "noice": {
"rev": "7bfd942445fb63089b59f97ca487d605e715f155", "rev": "7bfd942445fb63089b59f97ca487d605e715f155",
"src": "https://github.com/folke/noice.nvim" "src": "https://github.com/folke/noice.nvim"
@@ -81,7 +77,7 @@
"src": "https://github.com/Aasim-A/scrollEOF.nvim" "src": "https://github.com/Aasim-A/scrollEOF.nvim"
}, },
"telescope": { "telescope": {
"rev": "471eebb1037899fd942cc0f52c012f8773505da1", "rev": "f04ab730b8f9c6bf3f54a206d0dcddfd70c52d59",
"src": "https://github.com/nvim-telescope/telescope.nvim" "src": "https://github.com/nvim-telescope/telescope.nvim"
}, },
"telescope-file-browser": { "telescope-file-browser": {
@@ -89,7 +85,7 @@
"src": "https://github.com/nvim-telescope/telescope-file-browser.nvim" "src": "https://github.com/nvim-telescope/telescope-file-browser.nvim"
}, },
"telescope-fzf": { "telescope-fzf": {
"rev": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c", "rev": "b25b749b9db64d375d782094e2b9dce53ad53a40",
"src": "https://github.com/nvim-telescope/telescope-fzf-native.nvim" "src": "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
}, },
"telescope-nerdy": { "telescope-nerdy": {