From 3041f57532008bb13489093187c07d20b5bc236d Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Wed, 15 May 2024 11:47:34 -0500 Subject: [PATCH] Trying to setup plugins differently --- hosts/familypc/home.nix | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/hosts/familypc/home.nix b/hosts/familypc/home.nix index d1d89e3..6b83c47 100644 --- a/hosts/familypc/home.nix +++ b/hosts/familypc/home.nix @@ -184,6 +184,8 @@ in ]; plugins = with pkgs.vimPlugins; [ nvim-treesitter.withAllGrammars + lualine-nvim + nvim-web-devicons comment-nvim { plugin = dracula-nvim; @@ -191,14 +193,8 @@ in } plenary-nvim neodev-nvim - { - plugin = nvim-cmp; - config = toLuaFile ../../config/nvim/plugins/cmp.lua; - } - { - plugin = telescope-nvim; - config = toLuaFile ../../config/nvim/plugins/telescope.lua; - } + nvim-cmp + telescope-nvim vim-tmux-navigator ]; extraLuaConfig = '' @@ -215,6 +211,7 @@ in opt.termguicolors = true opt.background = "dark" opt.signcolumn = "yes" + opt.mouse = "a" opt.cursorline = true opt.backspace = "indent,eol,start" opt.clipboard:append("unnamedplus") @@ -237,6 +234,24 @@ in keymap.set("n", "tn", "tabn", { desc = "Go to next tab" }) -- go to next tab keymap.set("n", "tp", "tabp", { desc = "Go to previous tab" }) -- go to previous tab keymap.set("n", "tf", "tabnew %", { desc = "Open current buffer in new tab" }) -- move current buffer to new tab + -- Comment + require("Comment").setup() + -- Lualine + require("lualine").setup({ + icons_enabled = true, + theme = 'dracula', + }) + require('telescope').setup({ + extensions = { + fzf = { + fuzzy = true, -- false will only do exact matching + override_generic_sorter = true, -- override the generic sorter + override_file_sorter = true, -- override the file sorter + case_mode = "smart_case", -- or "ignore_case" or "respect_case" + -- the default case_mode is "smart_case" + } + } + }) ''; }; kitty = {