Skip to content

Commit

Permalink
add nvim plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Jul 2, 2024
1 parent b02d24f commit 4485803
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"lazy.nvim": { "branch": "main", "commit": "d0921f5b9b3d2c5e09618da55a018228edcc4d16" },
"lsp_signature.nvim": { "branch": "master", "commit": "a38da0a61c172bb59e34befc12efe48359884793" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
"nvim-lspconfig": { "branch": "master", "commit": "53a3c6444ec5006b567071614c83edc8ad651f6d" },
"nvim-treesitter": { "branch": "master", "commit": "e0d6c7643dc953acc2e817d0cebfc2f1f8c008e1" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"supermaven-nvim": { "branch": "main", "commit": "c7ab94a6bcde96c79ff51afd6a1494606bb6f10b" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }
}
27 changes: 27 additions & 0 deletions .config/nvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
return {
"neovim/nvim-lspconfig",

dependencies = {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
},

config = function()
local lspconfig = require("lspconfig")
local mason = require("mason")
local mason_lspconfig = require("mason-lspconfig")

mason.setup()
mason_lspconfig.setup({
ensure_installed = {
"dockerls",
"docker_compose_language_service",
"pyright",
"gopls",
"tsserver",
},
})

vim.keymap.set('n', '<S-k>', vim.lsp.buf.hover, bufopts)
end
}
6 changes: 6 additions & 0 deletions .config/nvim/lua/plugins/lsp_signature.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {},
config = function(_, opts) require'lsp_signature'.setup(opts) end
}
17 changes: 17 additions & 0 deletions .config/nvim/lua/plugins/nvim-treesitter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
vim.keymap.set('n', '<C-p>', function()
require('telescope.builtin').find_files()
end)

configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
6 changes: 6 additions & 0 deletions .config/nvim/lua/plugins/supermaven.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
"supermaven-inc/supermaven-nvim",
config = function()
require("supermaven-nvim").setup({})
end,
}

0 comments on commit 4485803

Please sign in to comment.