this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Switched to telescope.nvim!

+21 -39
+3 -32
home.nix
··· 5 5 name = "nvim-solarized-lua"; 6 6 src = pkgs.fetchgit { 7 7 url = "https://github.com/ishan9299/nvim-solarized-lua"; 8 - rev = "fa437ae65a6c1239525e4ec7f4cbf4671eaa55ba"; 9 8 sha256 = "032gs63g3x62mym6nhznvywsqk1cxsgwx0fv2vyh2c929fb27ji7"; 10 9 }; 11 10 meta.homepage = "https://github.com/ishan9299/nvim-solarized-lua"; ··· 15 14 name = "nvim-comment"; 16 15 src = pkgs.fetchgit { 17 16 url = "https://github.com/terrortylor/nvim-comment"; 18 - rev = "6363118acf86824ed11c2238292b72dc5ef8bdde"; 19 17 sha256 = "039fznaldf6lzk0yp51wi7p1j3l5rvhwryvk5s3lrq78lxq2rzn2"; 20 18 }; 21 19 buildPhase = "# skip the makefile"; 22 20 meta.homepage = "https://github.com//terrortylor/nvim-comment"; 23 21 }; 24 - 25 - fzf-lua = pkgs.vimUtils.buildVimPlugin { 26 - name = "fzf-lua"; 27 - src = pkgs.fetchgit { 28 - url = "https://github.com/ibhagwan/fzf-lua"; 29 - rev = "82a477420d34e6d8611d6b02ba1edb58c6e4ee2b"; 30 - sha256 = "12glahin6cv451khcpy7l4415pp2hhky5v2dyy6rbahmmxi2ijpr"; 31 - }; 32 - meta.homepage = "https://github.com/ibhagwan/fzf-lua"; 33 - }; 34 - nvim-fzf = pkgs.vimUtils.buildVimPlugin { 35 - name = "nvim-fzf"; 36 - src = pkgs.fetchgit { 37 - url = "https://github.com/vijaymarupudi/nvim-fzf"; 38 - rev = "8905eeea65b5b92ce0eff434a016e7e2fb4a615d"; 39 - sha256 = "0ja7hz55f706zdw5ngcn58fyjfamsg266mzkgawbydgpilvwf1mj"; 40 - }; 41 - meta.homepage = "https://github.com/vijaymarupudi/nvim-fzf"; 42 - }; 43 22 in 44 23 { 45 24 # Let Home Manager install and manage itself. ··· 94 73 plugin = gitsigns-nvim; 95 74 config = "lua require('gitsigns').setup()"; 96 75 } 97 - { plugin = nvim-fzf; } 98 - { plugin = fzf-lua; } 99 - 76 + # { plugin = "hrsh7th/nvim-compe"; } 77 + { plugin = nvim-treesitter; } 78 + { plugin = telescope-nvim; } 100 79 { 101 80 plugin = nvim-comment; 102 81 config = "lua require('nvim_comment').setup()"; 103 82 } 104 83 { plugin = vim-closer; } 105 84 { plugin = nvim-tree-lua; } 106 - 107 85 { plugin = nvim-web-devicons; } 108 86 { plugin = nvim-solarized-lua; } 109 87 { plugin = lualine-nvim; } 110 - 111 88 { plugin = nvim-lspconfig; } 112 89 { plugin = vim-nix; } 113 - 114 - # Not sure on these yet 115 - # { plugin = "hrsh7th/nvim-compe"; } 116 - # { plugin = "nvim-telescope/telescope.nvim"; } 117 - # { plugin = "mfussenegger/nvim-dap"; } 118 - # { plugin = "simrat39/rust-tools.nvim"; } 119 90 ]; 120 91 121 92 extraConfig = (builtins.readFile ./nvim/init.vim);
+18 -7
nvim/init.vim
··· 93 93 set_keymap('n', '<leader>ln', ':lnext<CR>', opts) 94 94 set_keymap('n', '<leader>lp', ':lprev<CR>', opts) 95 95 96 - -- Commenting 97 - set_keymap('', '<leader>c', ':CommentToggle<CR>', opts) 98 - 99 96 -- Project Navigation 100 97 set_keymap('n', '<leader>pt', ':NvimTreeToggle<CR>', opts) 101 - set_keymap('n', '<leader>pf', ':lua require("fzf-lua").files()<CR>', opts) 98 + set_keymap('n', '<leader>pf', ":lua require('telescope.builtin').find_files()<CR>", opts) 99 + set_keymap('n', '<leader>pb', ":lua require('telescope.builtin').buffers()<CR>", opts) 100 + set_keymap('n', '<leader>ps', ":lua require('telescope.builtin').live_grep()<CR>", opts) 101 + 102 + -- LSP 103 + set_keymap('n', 'gd', ":lua require('telescope.builtin').lsp_definitions()<CR>", opts) 104 + set_keymap('n', 'gr', ":lua require('telescope.builtin').lsp_references()<CR>", opts) 105 + set_keymap('n', '<leader>fo', ":lua require('telescope.builtin').lsp_document_symbols()<CR>", opts) 106 + set_keymap('n', '<leader>po', ":lua require('telescope.builtin').lsp_dynamic_workspace_symbols()<CR>", opts) 107 + 108 + -- Git 109 + set_keymap('n', '<leader>gs', ":lua require('telescope.builtin').git_status()<CR>", opts) 110 + set_keymap('n', '<leader>gc', ":lua require('telescope.builtin').git_commits()<CR>", opts) 111 + 112 + -- Misc 113 + set_keymap('', '<leader>c', ':CommentToggle<CR>', opts) 102 114 set_keymap('n', '<leader>sc', ':let @/=""<CR>', opts) 103 - -- TODO: Search buffers 104 115 105 116 -- Autocomplete 106 117 -- set_keymap("i", "<Tab>", "v:lua.tab_complete()", {expr = true}) ··· 127 138 -- TODO: Search workspace symbols? 128 139 129 140 buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts) 130 - buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) 131 - buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) 141 + -- buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) 142 + -- buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) 132 143 buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts) 133 144 buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts) 134 145 buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)