87 lines
2.1 KiB
Lua
87 lines
2.1 KiB
Lua
return {
|
|
{
|
|
"stevearc/conform.nvim",
|
|
-- event = 'BufWritePre', -- uncomment for format on save
|
|
opts = require "configs.conform",
|
|
},
|
|
|
|
{
|
|
"charludo/projectmgr.nvim",
|
|
lazy = false, -- Required for proper functionality
|
|
},
|
|
|
|
-- These are some examples, uncomment them if you want to see them work!
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require "configs.lspconfig"
|
|
end,
|
|
},
|
|
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = {
|
|
-- Installer for language servers
|
|
"williamboman/mason.nvim",
|
|
"williamboman/mason-lspconfig.nvim",
|
|
},
|
|
config = function()
|
|
require("mason").setup()
|
|
require("mason-lspconfig").setup({
|
|
ensure_installed = {
|
|
"lua_ls", -- Lua
|
|
"gopls", -- Go
|
|
"tsserver", -- JavaScript/TypeScript
|
|
},
|
|
})
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
-- Lua Language Server
|
|
lspconfig.lua_ls.setup {}
|
|
|
|
-- Go Language Server
|
|
lspconfig.gopls.setup {}
|
|
|
|
-- JavaScript/TypeScript Language Server
|
|
lspconfig.tsserver.setup {}
|
|
end,
|
|
},
|
|
|
|
-- Supermaven
|
|
{
|
|
"supermaven-inc/supermaven-nvim",
|
|
lazy = false,
|
|
config = function()
|
|
require("supermaven-nvim").setup {
|
|
keymaps = {
|
|
accept_suggestion = "<A-l>",
|
|
clear_suggestion = "<C-]>",
|
|
accept_word = "<C-j>",
|
|
},
|
|
ignore_filetypes = { cpp = true }, -- or { "cpp", }
|
|
color = {
|
|
suggestion_color = "#ffffff",
|
|
cterm = 244,
|
|
},
|
|
log_level = "info", -- set to "off" to disable logging completely
|
|
disable_inline_completion = false, -- disables inline completion for use with cmp
|
|
disable_keymaps = false, -- disables built in keymaps for more manual control
|
|
condition = function()
|
|
return false
|
|
end, -- condition to check for stopping supermaven, `true` means to stop supermaven when the condition is true.
|
|
}
|
|
end,
|
|
},
|
|
|
|
-- {
|
|
-- "nvim-treesitter/nvim-treesitter",
|
|
-- opts = {
|
|
-- ensure_installed = {
|
|
-- "vim", "lua", "vimdoc",
|
|
-- "html", "css"
|
|
-- },
|
|
-- },
|
|
-- },
|
|
}
|