Skip to content

Commit

Permalink
improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Sep 5, 2024
1 parent e378ab5 commit 397f57f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,15 @@ nmap("gd", ":Telescope lsp_definitions<cr>")
nmap("gr", ":Telescope lsp_reference<cr>")
nmap("gi", ":Telescope lsp_implementations<cr>")
nmap("<leader>ac", "<cmd>lua vim.lsp.buf.code_action()<cr>")
-- nmap("<leader>ac", ":Lspsaga code_action<cr>")
nmap("gp", "<cmd>lua vim.diagnostic.open_float()<cr>")
nmap("gk", "<cmd>lua vim.diagnostic.goto_prev()<cr>")
nmap("gj", "<cmd>lua vim.diagnostic.goto_next()<cr>")


-- nmap("<leader>gd", builtin.lsp_definitions)

nmap("s", ":HopWord<cr>")
nmap("s", ":HopChar1<cr>")
nmap("<S-L>", ":BufferLineCycleNext<cr>")
nmap("<S-H>", ":BufferLineCyclePrev<cr>")
nmap("<leader>c", ":Bdelete<cr>")
Expand Down
32 changes: 29 additions & 3 deletions modules/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
enable = true;
viAlias = true;
vimAlias = true;
# colorschemes.catppuccin.enable = true;
colorschemes.kanagawa.enable = true;
# colorschemes.kanagawa.enable = true;
# colorschemes.tokyonight.enable = true;
colorschemes.catppuccin.enable = true;
plugins = {
lsp = {
enable = true;
Expand All @@ -21,6 +22,11 @@
# tsserver.enable = true;
};
};
lspsaga = {
enable = true;
lightbulb.enable = false;
};
lspkind.enable = true;
typescript-tools = {
enable = true;
settings.exposeAsCodeAction = "all";
Expand All @@ -35,7 +41,11 @@
direnv.enable = true;
which-key.enable = true;
wilder.enable = true;
telescope.enable = true;
telescope = {
enable = true;
# extensions.ui-select.enable = true;
};
dressing.enable = true;
dashboard.enable = true;
hop.enable = true;
nvim-tree.enable = true;
Expand All @@ -46,14 +56,30 @@
cmp-nvim-lsp.enable = true;
cmp-path.enable = true;
cmp-buffer.enable = true;
cmp_luasnip.enable = true;
nvim-snippets.enable = true;
friendly-snippets.enable = true;
luasnip = {
enable = true;
settings = {
enable_autosnippets = true;
};
};
cmp = {
enable = true;
autoEnableSources = true;
settings = {
snippet.expand = ''
function(args)
require('luasnip').lsp_expand(args.body)
end
'';
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "luasnip"; }
{ name = "snippets"; }
];
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
Expand Down

0 comments on commit 397f57f

Please sign in to comment.