Last active
May 19, 2026 13:33
-
-
Save storopoli/21a4a5f38713e742211ea062ac6c6e19 to your computer and use it in GitHub Desktop.
Very Very Very Minimal init.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vim.pack.add{ | |
| 'https://github.com/ibhagwan/fzf-lua', | |
| 'https://github.com/neovim/nvim-lspconfig', | |
| } | |
| -- LSP | |
| vim.o.autocomplete = true | |
| vim.o.completeopt = 'menu,menuone,noselect,nearest' | |
| vim.diagnostic.config({ virtual_text = false, virtual_lines = { current_line = true } }) | |
| vim.api.nvim_create_autocmd("LspAttach", { | |
| callback = function(args) | |
| local bufnr = args.buf | |
| local client = assert(vim.lsp.get_client_by_id(args.data.client_id)) | |
| -- Native LSP completion | |
| if client:supports_method("textDocument/completion") then | |
| vim.lsp.completion.enable(true, client.id, bufnr, { autotrigger = true }) | |
| end | |
| end | |
| }) | |
| -- FZF-Lua | |
| vim.o.termguicolors = true | |
| require "fzf-lua".setup { defaults = { git_icons = false } } | |
| vim.api.nvim_set_keymap("n", "<C-\\>", [[<Cmd>lua require"fzf-lua".buffers()<CR>]], {}) | |
| vim.api.nvim_set_keymap("n", "<C-k>", [[<Cmd>lua require"fzf-lua".diagnostics_workspace()<CR>]], {}) | |
| vim.api.nvim_set_keymap("n", "<C-p>", [[<Cmd>lua require"fzf-lua".global()<CR>]], {}) | |
| vim.api.nvim_set_keymap("n", "<C-l>", [[<Cmd>lua require"fzf-lua".live_grep()<CR>]], {}) | |
| vim.api.nvim_set_keymap("n", "<C-g>", [[<Cmd>lua require"fzf-lua".grep_project()<CR>]], {}) | |
| vim.api.nvim_set_keymap("n", "<C-h>", [[<Cmd>lua require"fzf-lua".git_diff()<CR>]], {}) | |
| -- vim.lsp.enable({"..."}) | |
| -- vim.cmd.colorscheme("...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment