-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
178 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let mapleader = " " | ||
|
||
" plugins | ||
Plug 'preservim/nerdtree' | ||
Plug 'tpope/vim-surround' | ||
Plug 'toppe/vim-commentary' | ||
|
||
" key mappings | ||
nmap gi <Action>(GotoImplementation) | ||
nmap gr <Action>(FindUsages) | ||
nmap <leader>ca <Action>(GotoAction) | ||
nmap <C-p> <Action>(SearchEverywhere) | ||
nmap <leader>rn <Action>(RenameElement) | ||
nmap [b <Action>(PreviousTab) | ||
nmap ]b <Action>(NextTab) | ||
|
||
nmap <C-n> :NERDTreeToggle<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
require("catppuccin").setup({ | ||
integrations = { | ||
flash = true, | ||
aerial = true, | ||
diffview = true, | ||
dropbar = { | ||
enabled = true, | ||
}, | ||
noice = true, | ||
} | ||
notify = true, | ||
}, | ||
transparent_background = true, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
require("conform").setup({ | ||
formatters_by_ft = { | ||
lua = { "stylua" }, | ||
-- Conform will run multiple formatters sequentially | ||
python = { "autopep8" }, | ||
google = { "google-java-format" }, | ||
-- Use a sub-list to run only the first available formatter | ||
javascript = { "rustywind", { "prettierd", "prettier" } }, | ||
javascriptreact = { "rustywind", { "prettierd", "prettier" } }, | ||
typescript = { "rustywind", { "prettierd", "prettier" } }, | ||
typescriptreact = { "rustywind", { "prettierd", "prettier" } }, | ||
java = { "google-java-format" }, | ||
javascript = { "biome", "prettierd", "prettier", stop_after_first = true }, | ||
javascriptreact = { "biome", "prettierd", "prettier", stop_after_first = true }, | ||
typescript = { "biome", "prettierd", "prettier", stop_after_first = true }, | ||
typescriptreact = { "biome", "prettierd", "prettier", stop_after_first = true }, | ||
sh = { "shfmt" }, | ||
bash = { "shfmt" }, | ||
}, | ||
format_on_save = { | ||
-- timeout_ms = 500, | ||
timeout_ms = 500, | ||
lsp_fallback = true, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
local null_ls = require("null-ls") | ||
|
||
null_ls.setup({ | ||
sources = { | ||
null_ls.builtins.diagnostics.textlint.with({ | ||
extra_filetypes = { "tex", "plaintex" }, | ||
args = { | ||
"--config", | ||
"$XDG_CONFIG_HOME/textlint/.textlintrc.json", | ||
"--rules-base-directory", | ||
"$NVM_BIN/../lib/node_modules", | ||
"-f", | ||
"json", | ||
"--stdin", | ||
"--stdin-filename", | ||
"$FILENAME", | ||
}, | ||
}), | ||
}, | ||
-- debug = true, | ||
-- sources = { | ||
-- null_ls.builtins.diagnostics.textlint.with({ | ||
-- extra_filetypes = { "tex", "plaintex" }, | ||
-- }), | ||
-- }, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,48 @@ | ||
local cmp = require("cmp") | ||
|
||
cmp.setup({ | ||
window = { | ||
completion = cmp.config.window.bordered(), | ||
documentation = cmp.config.window.bordered(), | ||
}, | ||
snippet = { | ||
expand = function(args) | ||
require("luasnip").lsp_expand(args.body) | ||
end, | ||
}, | ||
sources = { | ||
{ name = "nvim_lsp" }, | ||
{ name = "nvim_lsp_signature_help" }, | ||
{ name = "nvim_lsp_document_symbol" }, | ||
{ name = "buffer" }, | ||
{ name = "path" }, | ||
{ name = "nvim_lua" }, | ||
{ name = "luasnip" }, | ||
{ name = "calc" }, | ||
}, | ||
mapping = cmp.mapping.preset.insert({ | ||
["<C-p>"] = cmp.mapping.select_prev_item(), | ||
["<C-n>"] = cmp.mapping.select_next_item(), | ||
["<C-l>"] = cmp.mapping.complete(), | ||
["<C-e>"] = cmp.mapping.abort(), | ||
["<CR>"] = cmp.mapping.confirm { select = true }, | ||
}), | ||
formatting = { | ||
format = require("lspkind").cmp_format({ | ||
mode = "symbol", | ||
maxwidth = 50, | ||
ellipsis_char = "...", | ||
}) | ||
}, | ||
cmp.setup.cmdline(':', { | ||
mapping = cmp.mapping.preset.cmdline(), | ||
sources = cmp.config.sources({ | ||
{ name = 'path' } | ||
}, { | ||
{ name = 'cmdline' } | ||
}) | ||
}) | ||
window = { | ||
completion = cmp.config.window.bordered(), | ||
documentation = cmp.config.window.bordered(), | ||
}, | ||
snippet = { | ||
expand = function(args) | ||
require("luasnip").lsp_expand(args.body) | ||
end, | ||
}, | ||
sources = { | ||
{ name = "nvim_lsp" }, -- LSP | ||
{ name = "nvim_lsp_signature_help" }, -- 関数のパラメータ | ||
{ name = "nvim_lsp_document_symbol" }, -- LSPのdocumentSymbol | ||
{ name = "buffer" }, -- バッファ内の単語 | ||
{ name = "path" }, -- ファイルパス | ||
{ name = "nvim_lua" }, -- NeovimのLua API | ||
{ name = "lazydev" }, | ||
{ name = "luasnip" }, -- スニペット | ||
{ name = "calc" }, -- 計算結果 | ||
}, | ||
mapping = cmp.mapping.preset.insert({ | ||
["<C-p>"] = cmp.mapping.select_prev_item(), | ||
["<C-n>"] = cmp.mapping.select_next_item(), | ||
["<C-l>"] = cmp.mapping.complete(), | ||
["<C-e>"] = cmp.mapping.abort(), | ||
["<CR>"] = cmp.mapping.confirm({ select = false }), | ||
}), | ||
formatting = { | ||
expandable_indicator = true, | ||
fields = { "abbr", "kind", "menu" }, | ||
format = require("lspkind").cmp_format({ | ||
mode = "symbol_text", | ||
maxwidth = 50, | ||
ellipsis_char = "...", | ||
}), | ||
}, | ||
cmp.setup.cmdline(":", { | ||
mapping = cmp.mapping.preset.cmdline(), | ||
sources = cmp.config.sources({ | ||
{ name = "path" }, | ||
}, { | ||
{ name = "cmdline" }, | ||
}), | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.