From 2c9ef417a898ace6f53c9adc18b850b3298218d4 Mon Sep 17 00:00:00 2001 From: Dmitri Date: Tue, 8 Apr 2025 15:32:41 +0200 Subject: [PATCH] edit --- .zshrc | 2 ++ nvim/lua/kanopo/options.lua | 12 ++++++++++++ nvim/lua/kanopo/plugins/lsp.lua | 16 ---------------- nvim/lua/kanopo/plugins/markdown.lua | 13 ++++++++++--- nvim/lua/kanopo/plugins/telescope.lua | 6 ++---- nvim/lua/kanopo/plugins/treesitter.lua | 2 +- sway/config | 2 +- 7 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.zshrc b/.zshrc index 033b5d6..a138343 100644 --- a/.zshrc +++ b/.zshrc @@ -46,6 +46,8 @@ export GPG_TTY=$(tty) set -o vi 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. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh diff --git a/nvim/lua/kanopo/options.lua b/nvim/lua/kanopo/options.lua index 51c3cc8..73d88af 100644 --- a/nvim/lua/kanopo/options.lua +++ b/nvim/lua/kanopo/options.lua @@ -39,3 +39,15 @@ vim.opt.conceallevel = 2 -- lang spell cheecking for italian and english vim.opt.spell = true 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 diff --git a/nvim/lua/kanopo/plugins/lsp.lua b/nvim/lua/kanopo/plugins/lsp.lua index 5ebffa9..9927b9b 100644 --- a/nvim/lua/kanopo/plugins/lsp.lua +++ b/nvim/lua/kanopo/plugins/lsp.lua @@ -1,12 +1,9 @@ local lsp_servers = { "lua_ls", - -- "ltex", "ts_ls", - "gopls", "texlab", "marksman", "clangd", - "jdtls", "docker_compose_language_service", "dockerls", "tailwindcss", @@ -23,8 +20,6 @@ local tools = { "clang-format" } -local dap_tools = {} - local on_attach = function(_, bufnr) local map = function(key, func, desc) vim.keymap.set("n", key, func, { noremap = true, silent = true, desc = desc }) @@ -68,17 +63,6 @@ return { ensure_installed = tools, 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({ ensure_installed = lsp_servers, automatic_installation = true diff --git a/nvim/lua/kanopo/plugins/markdown.lua b/nvim/lua/kanopo/plugins/markdown.lua index ffe6de7..72d755f 100644 --- a/nvim/lua/kanopo/plugins/markdown.lua +++ b/nvim/lua/kanopo/plugins/markdown.lua @@ -1,6 +1,13 @@ --- return { "ellisonleao/glow.nvim", config = true, cmd = "Glow" } return { 'MeanderingProgrammer/render-markdown.nvim', - dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons - opts = {}, + dependencies = { + 'nvim-treesitter/nvim-treesitter', + 'nvim-tree/nvim-web-devicons' + }, + config = function() + require('render-markdown').setup({ + html = { enabled = false }, + latex = { enabled = false }, + }) + end } diff --git a/nvim/lua/kanopo/plugins/telescope.lua b/nvim/lua/kanopo/plugins/telescope.lua index ce7a086..d5c3c14 100644 --- a/nvim/lua/kanopo/plugins/telescope.lua +++ b/nvim/lua/kanopo/plugins/telescope.lua @@ -3,10 +3,8 @@ return { tag = '0.1.8', dependencies = { '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', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release' } + { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' } }, config = function() require('telescope').setup { diff --git a/nvim/lua/kanopo/plugins/treesitter.lua b/nvim/lua/kanopo/plugins/treesitter.lua index 2d43e2d..32f0a2d 100644 --- a/nvim/lua/kanopo/plugins/treesitter.lua +++ b/nvim/lua/kanopo/plugins/treesitter.lua @@ -9,7 +9,7 @@ return { highlight = { enable = true, 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)) if ok and stats and stats.size > max_filesize then return true diff --git a/sway/config b/sway/config index f0abcc1..b1e90fb 100644 --- a/sway/config +++ b/sway/config @@ -28,7 +28,7 @@ set $gruvbox_orange #d65d0e # Impostazione del wallpaper e configurazione output output * bg $wallpaper fill # 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 scale 1.3