[feat] Added some stuff from nixneovim

This commit is contained in:
Uttarayan Mondal
2024-03-06 20:37:43 +05:30
parent cf4478d722
commit e8a66288a8
6 changed files with 82 additions and 138 deletions

View File

@@ -13,6 +13,7 @@ in {
home.packages = with pkgs;
[
sqls
vcpkg
# vcpkg-tool
file

View File

@@ -29,7 +29,7 @@
nil = {
enable = true;
extraConfig =
# lua
/* lua */
''
settings = {
['nil'] = {
@@ -48,6 +48,15 @@
lua-language-server.enable = true;
jsonls.enable = true;
html.enable = true;
pylyzer.enable = true;
sqls = {
enable = true;
onAttachExtra =
/* lua */
''
require('sqls').on_attach(client, bufnr)
'';
};
# rust-analyzer.enable = true;
};
extraLua.pre =
@@ -117,16 +126,18 @@
"<leader>ee" = "[[<Plug>RestNvim]]";
"<leader>ec" = "[[<Plug>RestNvimPreview]]";
"<leader>\\\"" = ''[["+]]'';
"<leader><leader>" = "'<c-^>'";
"vff" = "'<cmd>vertical Gdiffsplit<cr>'";
"vff" = "[[<cmd>vertical Gdiffsplit<cr>]]";
"<C-k>" = "vim.lsp.buf.definition";
"gi" = "vim.lsp.buf.implementation";
"<leader>a" = "vim.lsp.buf.code_action";
"F" = "function() vim.lsp.buf.format({ async = true }) end";
"<C-l>" = "'copilot#Accept(\"<CR>\")'";
"<leader><leader>" = "'<c-^>'";
"<leader>q" = "[[<cmd>bw<cr>]]";
"<leader>n" = "[[<cmd>bnext<cr>]]";
"<leader>p" = "[[<cmd>bprev<cr>]]";
"<C-l>" = "[[<cmd>Outline<cr>]]";
};
};
@@ -140,6 +151,9 @@
telescope-dap-nvim
rustaceanvim
# Treesitter stuff
outline-nvim
# lsp stuff
nvim-cmp
cmp-buffer
@@ -156,6 +170,7 @@
lsp-zero-nvim
trouble-nvim
crates-nvim
sqls-nvim
# No more postman
rest-nvim

View File

@@ -114,7 +114,7 @@ cmp.setup.filetype('gitcommit', {
})
})
require('crates').setup()
require('outline').setup()
require("noice").setup({
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**

View File

@@ -1,7 +1,8 @@
{ pkgs, ... }: {
programs.wezterm = {
enable = true;
extraConfig = # lua
extraConfig =
/* lua */
''
local wezterm = require 'wezterm';
return {