Merge branch 'master' of ssh://git.olympuslab.net:522/afonso/dotfiles

This commit is contained in:
Afonso Franco 2023-10-04 09:08:33 +01:00
commit 9a46f3aea9
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
11 changed files with 76 additions and 306 deletions

View file

@ -25,6 +25,7 @@
"nvim-autopairs": { "branch": "master", "commit": "de4f7138a68d5d5063170f2182fd27faf06b0b54" },
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
"nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
"nvim-ghost.nvim": { "branch": "main", "commit": "a1ca0b2dac59881066d7ac9373cf64d59ba29d6a" },
"nvim-lspconfig": { "branch": "master", "commit": "ac478757efcde1ac346f7044ab774e7cbb482533" },
"nvim-tmux-navigation": { "branch": "main", "commit": "543f090a45cef28156162883d2412fffecb6b750" },
"nvim-treesitter": { "branch": "master", "commit": "d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1" },
@ -44,5 +45,6 @@
"vim-obsession": { "branch": "master", "commit": "fe9d3e1a9a50171e7d316a52e1e56d868e4c1fe5" },
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
"vimtex": { "branch": "master", "commit": "7d453a61b0256337f341a1195ca9eb3f3890a7df" },
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" },
"zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" }
}
}

View file

@ -29,6 +29,22 @@ lazy.setup({
require('leap').add_default_mappings()
end
},
--Nvim to browser
'subnut/nvim-ghost.nvim',
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
{
"folke/todo-comments.nvim",
@ -119,6 +135,9 @@ lazy.setup({
compiler_flags = "", -- Default flags passed to the compiler.
job_timeout_ms = 25000, -- Timeout for libuv job in milliseconds.
languages = { -- Language specific default compiler/flags
c = {
compiler = "cg132"
}
},
})
end
@ -212,12 +231,12 @@ lazy.setup({
end
},
{
'lervag/vimtex',
config = function()
require 'plugins.vimtex'
end
},
{
'lervag/vimtex',
config = function()
require 'plugins.vimtex'
end
},
-------------------------------------------------------------------------------------------
-- Syntax Highlighting

View file

@ -2,8 +2,7 @@ local mason_lspconfig = require "mason-lspconfig"
local lspconfig = require "lspconfig"
mason_lspconfig.setup({
ensure_installed = { "lua_ls", "texlab", "hls", "yamlls" },
automatic_installation = true
automatic_installation = false
})
@ -61,6 +60,13 @@ mason_lspconfig.setup_handlers {
end,
}
require('lspconfig')['hls'].setup {
filetypes = { 'haskell', 'lhaskell', 'cabal' },
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
require("rust-tools").setup({
server = {
on_attach = on_attach,
@ -79,4 +85,3 @@ require("rust-tools").setup({
},
},
})