mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
virtual machine and neovim changes
This commit is contained in:
parent
113fdfac68
commit
fc39de700a
7 changed files with 238 additions and 230 deletions
|
|
@ -26,9 +26,6 @@ local function map(mode, lhs, rhs, opts)
|
|||
end
|
||||
-- show tree
|
||||
map("n", "<Leader>t", ":NvimTreeToggle<CR>")
|
||||
-- coc completion
|
||||
map("i", "<cr>", 'pumvisible() ? coc#_select_confirm() : \"\\<C-g>u\\<CR>\"', {silent = true, expr = true})
|
||||
|
||||
-- plugin setups
|
||||
require("nvim-tree").setup {
|
||||
open_on_setup = true,
|
||||
|
|
@ -41,12 +38,21 @@ require("nvim-tree").setup {
|
|||
}
|
||||
require("nvim-web-devicons").setup()
|
||||
require("nvim-treesitter.configs").setup {
|
||||
ensure_installed = "all",
|
||||
ensure_installed = "",
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false
|
||||
}
|
||||
}
|
||||
|
||||
vim.g.coq_settings = {
|
||||
auto_start = "shut-up",
|
||||
xdg = true,
|
||||
keymap = {
|
||||
pre_select = true,
|
||||
},
|
||||
}
|
||||
-- shapes and colors
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
vim.cmd[[hi Normal guibg=#000000]]
|
||||
|
|
|
|||
|
|
@ -7,10 +7,6 @@
|
|||
withNodeJs = true;
|
||||
withPython3 = true;
|
||||
withRuby = true;
|
||||
coc = {
|
||||
enable = true;
|
||||
package = pkgs.vimPlugins.coc-nvim;
|
||||
};
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-smoothie #smooth scrolling
|
||||
tokyonight-nvim #color scheme
|
||||
|
|
@ -20,8 +16,10 @@
|
|||
nvim-web-devicons # for tree-lua
|
||||
# telescope-nvim # file finder
|
||||
indentLine # indentlines
|
||||
nvim-treesitter #syntax highlighting
|
||||
(nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars)) #syntax highlighting
|
||||
coq_nvim # autocompletions
|
||||
];
|
||||
extraConfig = "lua << EOF\n" + builtins.readFile ./init.lua + "\nEOF";
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue