commit bec6084d8c75fde7b0259f8913cfa9df9f5c7b90 Author: Sanctuary Hunter 2 Date: Fri May 29 01:44:32 2026 +0200 initial diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..5661ff6 --- /dev/null +++ b/init.lua @@ -0,0 +1 @@ +require("pleb") diff --git a/lua/pleb/cmp.lua b/lua/pleb/cmp.lua new file mode 100644 index 0000000..115f582 --- /dev/null +++ b/lua/pleb/cmp.lua @@ -0,0 +1,5 @@ +require('cmp').setup({ + sources = { + { name = 'nvim_lsp' }, + }, +}) diff --git a/lua/pleb/init.lua b/lua/pleb/init.lua new file mode 100644 index 0000000..b5bfa9f --- /dev/null +++ b/lua/pleb/init.lua @@ -0,0 +1,5 @@ +require("pleb.plugins") +require("pleb.map") +require("pleb.cmp") +require("pleb.lsp") +require("pleb.options") diff --git a/lua/pleb/lsp.lua b/lua/pleb/lsp.lua new file mode 100644 index 0000000..a5c5c08 --- /dev/null +++ b/lua/pleb/lsp.lua @@ -0,0 +1,5 @@ +local lspconfig = require('lspconfig') +vim.lsp.enable('lua_ls') +vim.lsp.enable('clangd') +vim.lsp.enable('rust_analyzer') +vim.lsp.enable('pyright') diff --git a/lua/pleb/map.lua b/lua/pleb/map.lua new file mode 100644 index 0000000..b1a12e8 --- /dev/null +++ b/lua/pleb/map.lua @@ -0,0 +1,11 @@ +vim.g.mapleader = " " +vim.keymap.set('n', 'gd', vim.lsp.buf.definition) +vim.keymap.set('n', 'gi', vim.lsp.buf.implementation) +vim.keymap.set('n', 'fm', vim.lsp.buf.format) + +local builtin = require('telescope.builtin') +vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fg', builtin.live_grep, {}) +vim.keymap.set('n', 'fb', builtin.buffers, {}) +vim.keymap.set('n', 'fh', builtin.help_tags, {}) +vim.keymap.set('n', 'gr', builtin.lsp_references) diff --git a/lua/pleb/options.lua b/lua/pleb/options.lua new file mode 100644 index 0000000..8ca6a35 --- /dev/null +++ b/lua/pleb/options.lua @@ -0,0 +1,5 @@ +vim.wo.number = true +vim.wo.relativenumber = true +vim.o.mouse = '' +vim.cmd('colorscheme catppuccin-mocha') +vim.wo.signcolumn = 'yes' diff --git a/lua/pleb/plugins.lua b/lua/pleb/plugins.lua new file mode 100644 index 0000000..5f4b85f --- /dev/null +++ b/lua/pleb/plugins.lua @@ -0,0 +1,11 @@ +vim.pack.add({ + "https://github.com/nvim-treesitter/nvim-treesitter", + "https://github.com/neovim/nvim-lspconfig", + "https://github.com/hrsh7th/nvim-cmp", + "https://github.com/hrsh7th/cmp-nvim-lsp", + "https://github.com/nvim-lua/plenary.nvim", + "https://github.com/nvim-telescope/telescope.nvim", + "https://github.com/numToStr/Comment.nvim", + { src = "https://github.com/j-hui/fidget.nvim", event = "LspAttach" }, + { src = "https://github.com/catppuccin/nvim", name = "catppuccin" }, +}) diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json new file mode 100644 index 0000000..c50ab81 --- /dev/null +++ b/nvim-pack-lock.json @@ -0,0 +1,40 @@ +{ + "plugins": { + "Comment.nvim": { + "rev": "e30b7f2008e52442154b66f7c519bfd2f1e32acb", + "src": "https://github.com/numToStr/Comment.nvim" + }, + "catppuccin": { + "rev": "8edd468af4d63212b84d69b2ddb5ffc9023ef5eb", + "src": "https://github.com/catppuccin/nvim" + }, + "cmp-nvim-lsp": { + "rev": "cbc7b02bb99fae35cb42f514762b89b5126651ef", + "src": "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + "fidget.nvim": { + "rev": "82404b196e73a00b1727a91903beef5ddc319d22", + "src": "https://github.com/j-hui/fidget.nvim" + }, + "nvim-cmp": { + "rev": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca", + "src": "https://github.com/hrsh7th/nvim-cmp" + }, + "nvim-lspconfig": { + "rev": "9573948c38bfabeec353ae7dd7d3ffec4c506a6b", + "src": "https://github.com/neovim/nvim-lspconfig" + }, + "nvim-treesitter": { + "rev": "4916d6592ede8c07973490d9322f187e07dfefac", + "src": "https://github.com/nvim-treesitter/nvim-treesitter" + }, + "plenary.nvim": { + "rev": "74b06c6c75e4eeb3108ec01852001636d85a932b", + "src": "https://github.com/nvim-lua/plenary.nvim" + }, + "telescope.nvim": { + "rev": "7d324792b7943e4aa16ad007212e6acc6f9fe335", + "src": "https://github.com/nvim-telescope/telescope.nvim" + } + } +}