Compare commits
No commits in common. "6eeb393859ffea8d903ba39ef464e7a4d1339e1d" and "dea3bfab4410081a51d75e602276d1a6701574cf" have entirely different histories.
6eeb393859
...
dea3bfab44
4 changed files with 29 additions and 39 deletions
|
@ -11,7 +11,5 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup(
|
||||
"tsousa.plugins",
|
||||
{ change_detection = { notify = false } }
|
||||
)
|
||||
require("lazy").setup("tsousa.plugins")
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@ return {
|
|||
"nvim-lua/plenary.nvim",
|
||||
"tpope/vim-surround",
|
||||
"github/copilot.vim",
|
||||
"laytan/cloak.nvim",
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
'hrsh7th/cmp-nvim-lsp', -- lsp
|
||||
'hrsh7th/cmp-nvim-lua', -- Nvim API completions
|
||||
|
@ -189,7 +190,6 @@ return {
|
|||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"hrsh7th/nvim-cmp",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"williamboman/mason.nvim",
|
||||
"j-hui/fidget.nvim",
|
||||
|
@ -211,42 +211,11 @@ return {
|
|||
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
-- ADD NVIM CMP AS A CAPABILITY
|
||||
local lsp_defaults = lspconfig.util.default_config
|
||||
|
||||
local capabilities = vim.tbl_deep_extend(
|
||||
'force',
|
||||
lsp_defaults.capabilities,
|
||||
require('cmp_nvim_lsp').default_capabilities()
|
||||
)
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
|
||||
},
|
||||
automatic_installation = true,
|
||||
handlers = {
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup({
|
||||
on_attach = on_attach,
|
||||
on_init = on_init,
|
||||
flags = lsp_flags,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end,
|
||||
-- add here other custom overrides
|
||||
["lua_ls"] = function()
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } }
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
}
|
||||
automatic_installation = true
|
||||
})
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
|
@ -270,6 +239,30 @@ return {
|
|||
vim.keymap.set('n', '<leader>fo', function() vim.lsp.buf.format { async = true } end, bufopts)
|
||||
vim.keymap.set('i', '<C-h>', vim.lsp.buf.signature_help, bufopts)
|
||||
end
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
-- ADD NVIM CMP AS A CAPABILITY
|
||||
local lsp_defaults = lspconfig.util.default_config
|
||||
|
||||
local capabilities = vim.tbl_deep_extend(
|
||||
'force',
|
||||
lsp_defaults.capabilities,
|
||||
require('cmp_nvim_lsp').default_capabilities()
|
||||
)
|
||||
|
||||
mason_lspconfig.setup_handlers({
|
||||
|
||||
-- This is a default handler that will be called for each installed server (also for new servers that are installed during a session)
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup {
|
||||
on_attach = on_attach,
|
||||
on_init = on_init,
|
||||
flags = lsp_flags,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end,
|
||||
})
|
||||
end
|
||||
},
|
||||
}
|
||||
|
|
|
@ -212,7 +212,7 @@ ramp-6-foreground = ${colors.yellow}
|
|||
type = internal/battery
|
||||
battery = BAT1
|
||||
adapter = ADP1
|
||||
full-at = 90
|
||||
full-at = 92
|
||||
low-at = 5
|
||||
poll-interval = 5
|
||||
time-format = %H:%M
|
||||
|
|
Loading…
Reference in a new issue