diff options
author | mhsn <mail@mhsn.net> | 2024-11-23 17:40:44 +0000 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2024-11-23 17:40:44 +0000 |
commit | c0ee49298161bccb75b9e23ed64fe80aacec2fd4 (patch) | |
tree | 7effe9b25db4f355f54828980a60b5f99bd260b8 /lua/plugins | |
download | nvim-c0ee49298161bccb75b9e23ed64fe80aacec2fd4.tar.gz nvim-c0ee49298161bccb75b9e23ed64fe80aacec2fd4.zip |
Initial commit
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/colors.lua | 10 | ||||
-rw-r--r-- | lua/plugins/conform.lua | 11 | ||||
-rw-r--r-- | lua/plugins/general.lua | 42 | ||||
-rw-r--r-- | lua/plugins/lsp.lua | 24 |
4 files changed, 87 insertions, 0 deletions
diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua new file mode 100644 index 0000000..1c44296 --- /dev/null +++ b/lua/plugins/colors.lua @@ -0,0 +1,10 @@ +return { + { + "sainnhe/gruvbox-material", + lazy = false, + priority = 1000, + config = function() + vim.cmd([[colorscheme gruvbox-material]]) + end, + }, +} diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua new file mode 100644 index 0000000..2751524 --- /dev/null +++ b/lua/plugins/conform.lua @@ -0,0 +1,11 @@ +return { + { + "stevearc/conform.nvim", + config = function() + require("conform").setup({ + formatters_by_ft = { lua = { "stylua" } }, + format_on_save = { timeout_ms = 500, lsp_format = "fallback" }, + }) + end, + }, +} diff --git a/lua/plugins/general.lua b/lua/plugins/general.lua new file mode 100644 index 0000000..ee08d88 --- /dev/null +++ b/lua/plugins/general.lua @@ -0,0 +1,42 @@ +return { + { + "nvim-tree/nvim-tree.lua", + version = "*", + lazy = false, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + keys = { + { "<leader>e", "<cmd>NvimTreeFocus<cr>", desc = "NvimTree focus" }, + }, + config = function() + require("nvim-tree").setup({}) + end, + }, + { + "nvim-telescope/telescope.nvim", + tag = "0.1.8", + keys = { + { "<C-p>", "<cmd>Telescope find_files<cr>", desc = "Telescope find files" }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "lua" }, + sync_install = false, + highlight = { enable = true }, + indent = { enable = true }, + }) + end, + }, + { + "ledger/vim-ledger", + version = "*", + config = function() + vim.g.ledger_fuzzy_account_completion = 1 + end, + }, +} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..66a7e76 --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,24 @@ +return { + { + "neovim/nvim-lspconfig", + }, + { + "williamboman/mason.nvim", + config = function() + require("mason").setup() + end, + }, + { + "williamboman/mason-lspconfig.nvim", + dependencies = { "mason.nvim" }, + config = function() + require("mason-lspconfig").setup({ + handlers = { + function(lsp) + require("lspconfig")[lsp].setup({}) + end, + }, + }) + end, + }, +} |