This commit is contained in:
Dmitri 2025-04-08 15:32:41 +02:00
parent e6be813481
commit 2c9ef417a8
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
7 changed files with 28 additions and 25 deletions

2
.zshrc
View File

@ -46,6 +46,8 @@ export GPG_TTY=$(tty)
set -o vi set -o vi
bindkey "^A" vi-beginning-of-line bindkey "^A" vi-beginning-of-line
bindkey '^[[1;5C' forward-word # Ctrl+Right (usually)
bindkey '^[[1;5D' backward-word # Ctrl+Left (usually)
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

View File

@ -39,3 +39,15 @@ vim.opt.conceallevel = 2
-- lang spell cheecking for italian and english -- lang spell cheecking for italian and english
vim.opt.spell = true vim.opt.spell = true
vim.opt.spelllang = "en,it" vim.opt.spelllang = "en,it"
-- local spell_dir = vim.fn.stdpath("data") .. "/spell"
-- vim.opt.spellfile = {
-- spell_dir .. "/en.utf-8.add",
-- spell_dir .. "/it.utf-8.add",
-- "~/.config/nvim/spell/en.proj.spl",
-- "~/.config/nvim/spell/it.proj.spl",
-- }
-- disable un used stuff
vim.g.loaded_perl_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.loaded_netrw = 0

View File

@ -1,12 +1,9 @@
local lsp_servers = { local lsp_servers = {
"lua_ls", "lua_ls",
-- "ltex",
"ts_ls", "ts_ls",
"gopls",
"texlab", "texlab",
"marksman", "marksman",
"clangd", "clangd",
"jdtls",
"docker_compose_language_service", "docker_compose_language_service",
"dockerls", "dockerls",
"tailwindcss", "tailwindcss",
@ -23,8 +20,6 @@ local tools = {
"clang-format" "clang-format"
} }
local dap_tools = {}
local on_attach = function(_, bufnr) local on_attach = function(_, bufnr)
local map = function(key, func, desc) local map = function(key, func, desc)
vim.keymap.set("n", key, func, { noremap = true, silent = true, desc = desc }) vim.keymap.set("n", key, func, { noremap = true, silent = true, desc = desc })
@ -68,17 +63,6 @@ return {
ensure_installed = tools, ensure_installed = tools,
automatic_installation = true automatic_installation = true
}) })
-- require("mason-nvim-dap").setup({
-- ensure_installed = dap_tools,
-- automatic_installation = true,
-- handlers = {
-- function(config)
-- -- defaults
-- require("mason-nvim-dap").default_setup(config)
-- end,
-- -- add here custom handlers when needed
-- }
-- })
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = lsp_servers, ensure_installed = lsp_servers,
automatic_installation = true automatic_installation = true

View File

@ -1,6 +1,13 @@
-- return { "ellisonleao/glow.nvim", config = true, cmd = "Glow" }
return { return {
'MeanderingProgrammer/render-markdown.nvim', 'MeanderingProgrammer/render-markdown.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons dependencies = {
opts = {}, 'nvim-treesitter/nvim-treesitter',
'nvim-tree/nvim-web-devicons'
},
config = function()
require('render-markdown').setup({
html = { enabled = false },
latex = { enabled = false },
})
end
} }

View File

@ -3,10 +3,8 @@ return {
tag = '0.1.8', tag = '0.1.8',
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
{ -- { 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release' }
'nvim-telescope/telescope-fzf-native.nvim', { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release'
}
}, },
config = function() config = function()
require('telescope').setup { require('telescope').setup {

View File

@ -9,7 +9,7 @@ return {
highlight = { highlight = {
enable = true, enable = true,
disable = function(lang, buf) disable = function(lang, buf)
local max_filesize = 1024 * 1024 * 1 -- 1MB local max_filesize = 1024 * 1024 * 10 -- 10MB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then if ok and stats and stats.size > max_filesize then
return true return true

View File

@ -28,7 +28,7 @@ set $gruvbox_orange #d65d0e
# Impostazione del wallpaper e configurazione output # Impostazione del wallpaper e configurazione output
output * bg $wallpaper fill output * bg $wallpaper fill
# Imposta il profilo ICC, risoluzione, posizione e scala per il display laptop # Imposta il profilo ICC, risoluzione, posizione e scala per il display laptop
output $laptop color_profile icc ~/Documents/kanopo/dotfiles/BOE_CQ_______NE135FBM_N41_03.icm output $laptop color_profile icc ~/Documents/dotfiles/BOE_CQ_______NE135FBM_N41_03.icm
output $laptop resolution 2256x1504 position 0,0 output $laptop resolution 2256x1504 position 0,0
output $laptop scale 1.3 output $laptop scale 1.3