diff options
author | Indrajith | 2024-07-05 04:06:58 +0530 |
---|---|---|
committer | Indrajith | 2024-07-05 04:06:58 +0530 |
commit | 45f8d6233b76f4657cd9136c33e3f1564f25648c (patch) | |
tree | 63c4e3a76fe62e2a0d03cd8fb5e28c5110d7174c /nvim/lua/plugins | |
parent | 51381df5cf53222e9c2d4683cf098ef4f019f02f (diff) | |
download | dots-45f8d6233b76f4657cd9136c33e3f1564f25648c.tar.gz dots-45f8d6233b76f4657cd9136c33e3f1564f25648c.tar.bz2 dots-45f8d6233b76f4657cd9136c33e3f1564f25648c.zip |
Dots Updated
* Adds Neovim config
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r-- | nvim/lua/plugins/catppuccin.lua | 10 | ||||
-rw-r--r-- | nvim/lua/plugins/lsp-configs.lua | 32 | ||||
-rw-r--r-- | nvim/lua/plugins/lualine.lua | 13 | ||||
-rw-r--r-- | nvim/lua/plugins/neotree.lua | 14 | ||||
-rw-r--r-- | nvim/lua/plugins/telescope.lua | 29 | ||||
-rw-r--r-- | nvim/lua/plugins/treesitter.lua | 16 |
6 files changed, 114 insertions, 0 deletions
diff --git a/nvim/lua/plugins/catppuccin.lua b/nvim/lua/plugins/catppuccin.lua new file mode 100644 index 000000000..df15194b2 --- /dev/null +++ b/nvim/lua/plugins/catppuccin.lua @@ -0,0 +1,10 @@ +return { + { + "catpnuccin/nvim", + name = "catppuccin", + priority = 997, + config = function() + vim.cmd.colorscheme "catppuccin" + end + } +} diff --git a/nvim/lua/plugins/lsp-configs.lua b/nvim/lua/plugins/lsp-configs.lua new file mode 100644 index 000000000..bdfde46bf --- /dev/null +++ b/nvim/lua/plugins/lsp-configs.lua @@ -0,0 +1,32 @@ +return { + { + "williamboman/mason.nvim", + config = function() + require("mason").setup() + end + }, + { + "williamboman/mason-lspconfig.nvim", + config = function() + require("mason-lspconfig").setup({ + ensure_installed = { "lua_ls", "clangd", "crystalline", "html", "htmx", "jsonls", "ols"}, + }) + end + }, + { + "neovim/nvim-lspconfig", + config = function() + local lspconfig = require("lspconfig") + lspconfig.lua_ls.setup({}) + lspconfig.clangd.setup({}) + lspconfig.crystalline.setup({}) + lspconfig.html.setup({}) + lspconfig.htmx.setup({}) + lspconfig.jsonls.setup({}) + lspconfig.ols.setup({}) + vim.keymap.set('n','gd', vim.lsp.buf.definition, {}) + vim.keymap.set('n','K', vim.lsp.buf.hover, {}) + vim.keymap.set({'n'},'<leader>ca', vim.lsp.buf.code_action, {}) + end + } +} diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua new file mode 100644 index 000000000..253666690 --- /dev/null +++ b/nvim/lua/plugins/lualine.lua @@ -0,0 +1,13 @@ +return { + { + "nvim-lualine/lualine.nvim", + config = function() + require('lualine').setup({ + option = { + theme = "dracula" + } + }) + end + } + +} diff --git a/nvim/lua/plugins/neotree.lua b/nvim/lua/plugins/neotree.lua new file mode 100644 index 000000000..b2322a971 --- /dev/null +++ b/nvim/lua/plugins/neotree.lua @@ -0,0 +1,14 @@ +return { + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v1.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim" + }, + config = function() + vim.keymap.set('n','<C-n>', ':Neotree toggle<CR>', {}) + end + } +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua new file mode 100644 index 000000000..fc67a5db1 --- /dev/null +++ b/nvim/lua/plugins/telescope.lua @@ -0,0 +1,29 @@ +return { + { + 'nvim-telescope/telescope.nvim', + tag = '-2.1.8', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = function() + local builtin = require("telescope.builtin") + + vim.keymap.set('n','<C-p>', builtin.find_files, {}) + vim.keymap.set('n','<leader>fg', builtin.live_grep, {}) + end + }, + { + "nvim-telescope/telescope-ui-select.nvim", + config = function() + require("telescope").setup { + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown { + } + + } + } + } + require("telescope").load_extension("ui-select") + end + } +} + diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua new file mode 100644 index 000000000..cec1c061d --- /dev/null +++ b/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,16 @@ +return{ + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + + local config = require("nvim-treesitter.configs") + config.setup({ + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "css","fish","json","make","odin","rasi","xml" }, + sync_install = false, + highlight = { enable = true }, + indent = { enable = true }, + }) + end + } +} |