Better lsp configs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
enabled = false,
|
||||
opts = function()
|
||||
require "configs.cmp"
|
||||
end,
|
||||
+13
-2
@@ -1,8 +1,12 @@
|
||||
local configs = require "configs.lspconfig"
|
||||
|
||||
vim.g.rustaceanvim = configs.rustacean
|
||||
|
||||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require "configs.lspconfig"
|
||||
configs.defaults()
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -17,7 +21,14 @@ return {
|
||||
ft = { "typescript", "typescriptreact" },
|
||||
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
|
||||
config = function()
|
||||
require "configs.typescript-tools"
|
||||
require("typescript-tools").setup(configs.typescript)
|
||||
end,
|
||||
},
|
||||
|
||||
-- lazy.nvim
|
||||
{
|
||||
"chrisgrieser/nvim-lsp-endhints",
|
||||
event = "LspAttach",
|
||||
opts = {}, -- required, even if empty
|
||||
},
|
||||
}
|
||||
|
||||
+35
-26
@@ -1,28 +1,37 @@
|
||||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
enabled = false,
|
||||
lazy = false,
|
||||
init = function()
|
||||
vim.cmd.colorscheme "catppuccin-mocha"
|
||||
require("catppuccin").setup {
|
||||
native_lsp = {
|
||||
enabled = true,
|
||||
virtual_text = {
|
||||
errors = { "italic" },
|
||||
hints = { "italic" },
|
||||
warnings = { "italic" },
|
||||
information = { "italic" },
|
||||
},
|
||||
underlines = {
|
||||
errors = { "underline" },
|
||||
hints = { "underline" },
|
||||
warnings = { "underline" },
|
||||
information = { "underline" },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
-- { "nvchad/base46", enabled = false },
|
||||
|
||||
-- {
|
||||
-- "folke/tokyonight.nvim",
|
||||
-- lazy = false,
|
||||
-- priority = 1000,
|
||||
-- opts = {},
|
||||
-- },
|
||||
|
||||
-- {
|
||||
-- "catppuccin/nvim",
|
||||
-- name = "catppuccin",
|
||||
-- enabled = false,
|
||||
-- lazy = false,
|
||||
-- init = function()
|
||||
-- vim.cmd.colorscheme "catppuccin-mocha"
|
||||
-- require("catppuccin").setup {
|
||||
-- native_lsp = {
|
||||
-- enabled = true,
|
||||
-- virtual_text = {
|
||||
-- errors = { "italic" },
|
||||
-- hints = { "italic" },
|
||||
-- warnings = { "italic" },
|
||||
-- information = { "italic" },
|
||||
-- },
|
||||
-- underlines = {
|
||||
-- errors = { "underline" },
|
||||
-- hints = { "underline" },
|
||||
-- warnings = { "underline" },
|
||||
-- information = { "underline" },
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user